|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.condensation.SimpleCondensation
public abstract class SimpleCondensation
Simple condensation implementation
| Constructor Summary | |
|---|---|
SimpleCondensation(double[] initial,
double[] variances,
int count)
SimpleCondensation constructor |
|
| Method Summary | |
|---|---|
double[] |
generateSample(double[] previous)
Generates a single sample from a previous one using the variances given |
double[] |
getCurrentBest()
Gets the current highest rated estimate will rate the set if not yet rated |
void |
nextGeneration()
Construct the next generation. |
void |
rateGeneration()
Rate a whole generation and normalise the weightings (sum to 1) |
abstract double |
rateSample(double[] sample)
Method to rate an individual sample, implementation dependent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleCondensation(double[] initial,
double[] variances,
int count)
initial - the initial value to work fromvariances - the dynamic variance of each parametercount - the number of samples to retain each iteration| Method Detail |
|---|
public double[] generateSample(double[] previous)
previous - the previous value of the sample
public abstract double rateSample(double[] sample)
sample - the sample to rate
public void rateGeneration()
public void nextGeneration()
public double[] getCurrentBest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||