1package umontreal.ssj.stat.density;
32 this.data =
new double[
data.length][];
33 for (
int i = 0; i <
data.length; i++) {
34 this.data[i] =
new double[
data[i].length];
35 for (
int j = 0; j <
data[i].length; j++)
36 this.data[i][j] =
data[i][j];
45 double Ninv = 1.0 / (double) N;
46 for (
int i = 0; i < N; i++) {
56 double[] dens =
new double[k];
58 double Ninv = 1.0 / (double) N;
59 for (
int j = 0; j < k; j++) {
61 for (
int i = 0; i < N; i++) {
88 return "Conditional Density Estimator";
This is an abstract class that implements an DensityEstimatorDoubleArray.
double[] evalDensity(double[] evalPoints, double[][] data)
Sets the observations for the density estimator to data and evaluates the density at each point in ev...
String toString()
Gives a short description of the estimator.
void setData(double[][] data)
Sets the observations for the density estimator to data.
double evalDensity(double x)
Evaluates the density estimator at x.
abstract double evalEstimator(double x, double[] data)
Evaluates the function at the point x and the realization of given in the -dimensional array data.
double[] evalDensity(double[] x)
Evaluates the density estimator at the points in evalPoints.
Same as DensityEstimator but here the observations of the underlying model are -dimensional.
double[][] data
The data associated with this DensityEstimatorDoubleArray object, if any.