Document.Windsurf
Class WindsurfBand

java.lang.Object
  extended by Document.Windsurf.WindsurfBand

public class WindsurfBand
extends java.lang.Object

Class representing a Windsurf band


Constructor Summary
WindsurfBand(ClusteringFeatures c, double[][] m)
          Creates a new band given a centroid and a covariance matrix.
WindsurfBand(java.lang.String[] data)
          Creates a band from an array of strings.
 
Method Summary
static int centroidSize()
          Returns the size of each centroid.
 java.lang.String centroidToString()
          Returns a string representation of the centroid of this band.
 java.lang.String covMatrixToString()
          Returns a string representation of the covariance matrix of this band.
static int covSize()
          Returns the size of each covariance matrix.
 double distance(WindsurfBand b)
          Method for computing the distance to another band.
 WindsurfClusteringFeatures getCentroid()
          Returns the centroid of this band (as a ClusteringFeatures).
 double[] getCentroidArray()
          Returns the centroid of this band (as an array of values).
static int getChannels()
          Returns the number of channels for each band.
 double[][] getCovMatrix()
          Returns the covariance matrix of this band (as a matrix of values).
 double[] getCovMatrixArray()
          Returns the covariance matrix of this band (as an array of values).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindsurfBand

public WindsurfBand(ClusteringFeatures c,
                    double[][] m)
Creates a new band given a centroid and a covariance matrix.

Parameters:
c - The centroid.
m - The covariance matrix.

WindsurfBand

public WindsurfBand(java.lang.String[] data)
Creates a band from an array of strings.

Parameters:
data - Array of strings containing features.
Method Detail

getCentroid

public WindsurfClusteringFeatures getCentroid()
Returns the centroid of this band (as a ClusteringFeatures).

Returns:
The centroid of this band (as a ClusteringFeatures).

getChannels

public static int getChannels()
Returns the number of channels for each band.

Returns:
The number of channels for each band.

getCentroidArray

public double[] getCentroidArray()
Returns the centroid of this band (as an array of values).

Returns:
The centroid of this band (as an array of values).

getCovMatrix

public double[][] getCovMatrix()
Returns the covariance matrix of this band (as a matrix of values).

Returns:
The covariance matrix of this band (as a matrix of values).

getCovMatrixArray

public double[] getCovMatrixArray()
Returns the covariance matrix of this band (as an array of values).

Returns:
The covariance matrix of this band (as an array of values).

covMatrixToString

public java.lang.String covMatrixToString()
Returns a string representation of the covariance matrix of this band.

Returns:
A string representation of the covariance matrix of this band.

centroidToString

public java.lang.String centroidToString()
Returns a string representation of the centroid of this band.

Returns:
A string representation of the centroid of this band.

distance

public double distance(WindsurfBand b)
Method for computing the distance to another band.

Parameters:
b - Band to be compared.
Returns:
The distance between the two bands.

centroidSize

public static int centroidSize()
Returns the size of each centroid.

Returns:
The size of each centroid.

covSize

public static int covSize()
Returns the size of each covariance matrix.

Returns:
The size of each covariance matrix.