Class ConditionalKDE.ConditionalResult1D
java.lang.Object
edu.cmu.tetrad.util.ConditionalKDE.ConditionalResult1D
- Enclosing class:
ConditionalKDE
Represents the result of a conditional density estimation in a one-dimensional space.
This class encapsulates the computed grid points, density values, weights, conditional targets,
and the bandwidth used in the estimation process. It provides methods for analyzing the resulting
density, such as finding the mode or integrating over the density function.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleThe bandwidth used in the density estimation.final double[]The conditional targets used in the density estimation.final double[]The density values at the grid points.final double[]The grid points used in the density estimation.final double[]The weights associated with each data point. -
Method Summary
-
Field Details
-
grid
public final double[] gridThe grid points used in the density estimation. -
density
public final double[] densityThe density values at the grid points. -
weights
public final double[] weightsThe weights associated with each data point. -
condTargets
public final double[] condTargetsThe conditional targets used in the density estimation. -
bandwidth
public final double bandwidthThe bandwidth used in the density estimation.
-
-
Method Details
-
mode
public double mode()Computes the mode of the density function. The mode is the grid point corresponding to the highest density value.- Returns:
- The grid point where the density reaches its maximum value.
-
integrate
public double integrate()Integrates the density function over the grid using the trapezoidal rule.- Returns:
- The integral of the density function over the grid.
-