org.apache.commons.math3.distribution.fitting
Class MultivariateNormalMixtureExpectationMaximization.DataRow

java.lang.Object
  extended by org.apache.commons.math3.distribution.fitting.MultivariateNormalMixtureExpectationMaximization.DataRow
All Implemented Interfaces:
Comparable<MultivariateNormalMixtureExpectationMaximization.DataRow>
Enclosing class:
MultivariateNormalMixtureExpectationMaximization

private static class MultivariateNormalMixtureExpectationMaximization.DataRow
extends Object
implements Comparable<MultivariateNormalMixtureExpectationMaximization.DataRow>

Class used for sorting user-supplied data.


Field Summary
private  Double mean
          Mean of the data row.
private  double[] row
          One data row.
 
Constructor Summary
MultivariateNormalMixtureExpectationMaximization.DataRow(double[] data)
          Create a data row.
 
Method Summary
 int compareTo(MultivariateNormalMixtureExpectationMaximization.DataRow other)
          Compare two data rows.
 boolean equals(Object other)
          
 double[] getRow()
          Get a data row.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

row

private final double[] row
One data row.


mean

private Double mean
Mean of the data row.

Constructor Detail

MultivariateNormalMixtureExpectationMaximization.DataRow

MultivariateNormalMixtureExpectationMaximization.DataRow(double[] data)
Create a data row.

Parameters:
data - Data to use for the row
Method Detail

compareTo

public int compareTo(MultivariateNormalMixtureExpectationMaximization.DataRow other)
Compare two data rows.

Specified by:
compareTo in interface Comparable<MultivariateNormalMixtureExpectationMaximization.DataRow>
Parameters:
other - The other row
Returns:
int for sorting

equals

public boolean equals(Object other)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getRow

public double[] getRow()
Get a data row.

Returns:
data row array


Copyright (c) 2003-2013 Apache Software Foundation