Package edu.cmu.tetrad.search.utils
Class KernelGaussian
java.lang.Object
edu.cmu.tetrad.search.utils.KernelGaussian
-
Constructor Summary
ConstructorsConstructorDescriptionKernelGaussian(double sigma) Creates a new Gaussian kernel with the given bandwidthKernelGaussian(DataSet dataset, Node node) Creates a new Gaussian kernel using the median distance between points to set the bandwidth -
Method Summary
Modifier and TypeMethodDescriptiondoubleeval(double i, double j) Evaluates the kernel at two points in the input spacedoublegetBandwidth.voidsetDefaultBw(DataSet dataset, Node node) Sets bandwidth from data using default methodvoidsetMedianBandwidth(DataSet dataset, Node node) Sets the bandwidth of the kernel to median distance between two points in the given vector
-
Constructor Details
-
KernelGaussian
public KernelGaussian(double sigma) Creates a new Gaussian kernel with the given bandwidth- Parameters:
sigma- the bandwidth
-
KernelGaussian
-
-
Method Details
-
getBandwidth
public double getBandwidth()getBandwidth.
- Specified by:
getBandwidthin interfaceKernel- Returns:
- the bandwidth
-
eval
-
setDefaultBw
-
setMedianBandwidth
-