* @param data the data supposedly generated from the mixture
* @param method the method to be used. Refer to the static final
* variables of this class. */
public void fit( DoubleVector data, int method ) {
DoubleVector data2 = (DoubleVector) data.clone();
if( data2.unsorted() ) data2.sort();
int n = data2.size();
int start = 0;
DoubleVector subset;
DiscreteFunction d = new DiscreteFunction();