public abstract class AbstractMetricReducer extends AbstractMetric
Constructor and Description |
---|
AbstractMetricReducer(IMetric... metrics) |
Modifier and Type | Method and Description |
---|---|
double |
calculate(ISpectrum spectrum) |
String |
getName() |
protected abstract double |
reduce(double value1,
double value2) |
protected abstract double |
startValue() |
equals, getFormula, hashCode, log2, normalize, normalize, requireFormula, setFormula, validMatrix
public AbstractMetricReducer(IMetric... metrics)
public double calculate(ISpectrum spectrum)
AbstractMetric
calculate
in interface IMetric
calculate
in class AbstractMetric
public String getName()
AbstractMetric
getName
in interface IMetric
getName
in class AbstractMetric
protected abstract double startValue()
protected abstract double reduce(double value1, double value2)
Copyright © 2010–2019 GZoltar. All rights reserved.