public class SampledMultivariateDistanceComparator extends Object implements DistanceComparator<MultivariateDistribution>
MultivariateDistribution.estimateLogProbability(double[][])
Constructor and Description |
---|
SampledMultivariateDistanceComparator() |
SampledMultivariateDistanceComparator(int nsamples) |
SampledMultivariateDistanceComparator(long seed,
int nsamples) |
Modifier and Type | Method and Description |
---|---|
double |
compare(MultivariateDistribution o1,
MultivariateDistribution o2)
Compare two objects, returning a score
or distance.
|
boolean |
isDistance() |
public SampledMultivariateDistanceComparator()
public SampledMultivariateDistanceComparator(int nsamples)
nsamples
- public SampledMultivariateDistanceComparator(long seed, int nsamples)
seed
- nsamples
- public double compare(MultivariateDistribution o1, MultivariateDistribution o2)
DistanceComparator
compare
in interface DistanceComparator<MultivariateDistribution>
o1
- the first objecto2
- the second objectpublic boolean isDistance()
isDistance
in interface DistanceComparator<MultivariateDistribution>