public abstract class BaseNormalizer extends Object implements Serializable, Normalizer
Modifier and Type | Field and Description |
---|---|
protected double |
max |
double |
min |
protected double |
missingMean |
protected Integer |
numObservations |
protected Random |
random |
protected gnu.trove.list.array.TDoubleArrayList |
sample |
static int |
SAMPLE_SIZE |
static long |
serialVersionUID |
protected org.apache.commons.math3.stat.descriptive.DescriptiveStatistics |
stats |
Modifier | Constructor and Description |
---|---|
protected |
BaseNormalizer()
To meet the serializable contract.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
dump() |
double |
getMax() |
double |
getMin() |
boolean |
isTrained() |
SRResultList |
normalize(SRResultList list)
A basic implementation of normalize.
|
void |
observationsFinished() |
void |
observe(double x) |
void |
observe(double x,
double y) |
void |
observe(SRResultList sims,
int rank,
double y) |
void |
reset() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
normalize
public static final long serialVersionUID
public static final int SAMPLE_SIZE
public double min
protected double max
protected gnu.trove.list.array.TDoubleArrayList sample
protected org.apache.commons.math3.stat.descriptive.DescriptiveStatistics stats
protected Integer numObservations
protected Random random
protected double missingMean
public void reset()
reset
in interface Normalizer
public void observe(SRResultList sims, int rank, double y)
observe
in interface Normalizer
public void observe(double x, double y)
observe
in interface Normalizer
public void observe(double x)
observe
in interface Normalizer
public void observationsFinished()
observationsFinished
in interface Normalizer
public SRResultList normalize(SRResultList list)
normalize
in interface Normalizer
list
- public double getMin()
public double getMax()
public abstract String dump()
dump
in interface Normalizer
public boolean isTrained()
isTrained
in interface Normalizer
Copyright © 2014. All rights reserved.