public class UnaryMetric extends Metric
| Modifier and Type | Field and Description |
|---|---|
protected double[] |
normalized |
protected int |
size |
protected double[] |
values |
description, invert, name, normalizationMaximum| Constructor and Description |
|---|
UnaryMetric(java.lang.String aName,
java.lang.String aDescription) |
UnaryMetric(java.lang.String aName,
java.lang.String aDescription,
int aSize) |
UnaryMetric(java.lang.String aName,
java.lang.String aDescription,
UnaryMetric template) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
double |
getMeasure(int index) |
double[] |
getNormalizedValues() |
protected double[] |
initializeVector(int size,
double initialValue) |
boolean |
isValid() |
protected double[] |
normalizeVector(double[] vector,
double maxValue) |
void |
setMeasure(int index,
double value) |
void |
setNormalizationMaximum(double aNormalizationMaximum) |
void |
setSize(int aSize) |
int |
size() |
getDescription, getInvert, getName, getNormalizationMaximum, setDescription, setInvert, setName, toStringprotected int size
protected double[] values
protected double[] normalized
public UnaryMetric(java.lang.String aName,
java.lang.String aDescription,
int aSize)
aName - aDescription - aSize - public UnaryMetric(java.lang.String aName,
java.lang.String aDescription)
aName - aDescription - public UnaryMetric(java.lang.String aName,
java.lang.String aDescription,
UnaryMetric template)
public void setSize(int aSize)
public int size()
public double getMeasure(int index)
public void setMeasure(int index,
double value)
public void setNormalizationMaximum(double aNormalizationMaximum)
setNormalizationMaximum in class Metricprotected double[] initializeVector(int size,
double initialValue)
protected double[] normalizeVector(double[] vector,
double maxValue)
public double[] getNormalizedValues()