DataType
- Type of data generated by the Distributionpublic class KolmogorovSmirnovDivergence<DataType extends java.lang.Number> extends AbstractCostFunction<UnivariateDistribution<DataType>,java.util.Collection<? extends DataType>>
costParameters
Constructor and Description |
---|
KolmogorovSmirnovDivergence()
Default constructor
|
KolmogorovSmirnovDivergence(java.util.Collection<? extends DataType> costParameters)
Creates a new instance of KolmogorovSmirnovDivergence
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
evaluate(UnivariateDistribution<DataType> target)
Computes the cost of the given target.
|
clone, getCostParameters, setCostParameters
public KolmogorovSmirnovDivergence()
public KolmogorovSmirnovDivergence(java.util.Collection<? extends DataType> costParameters)
costParameters
- Data generated by the target distributionpublic java.lang.Double evaluate(UnivariateDistribution<DataType> target)
CostFunction
target
- The object to evaluate.