类 KDE
- java.lang.Object
-
- org.meteoinfo.math.stats.kde.KDE
-
public class KDE extends java.lang.Object
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 doublelogPdf(Event e)Computed the log probability of event e.static voidmain(java.lang.String... args)static KDEtrainAdaptiveKDE(java.util.List<Event> data, double h0, int K)Creates a Kernel Density Estimation for the data using the adaptive bandwidth method.static KDEtrainAdaptiveKDE(java.util.List<Event> data, int K)Creates a Kernel Density Estimation for the data using the adaptive bandwidth method with the default value of (h0 = 0).static KDEtrainFixedKDE(java.util.List<Event> data, double h)Creates a Kernel Density Estimation for the data using the fixed bandwidth method.
-
-
-
方法详细资料
-
trainFixedKDE
public static KDE trainFixedKDE(java.util.List<Event> data, double h)
Creates a Kernel Density Estimation for the data using the fixed bandwidth method. See: http://www.datalab.uci.edu/papers/kernel_KDD2014.pdf- 参数:
data- - The observed datah- - The fixed bandwidth- 返回:
- A "trained" fixed-KDE model
-
trainAdaptiveKDE
public static KDE trainAdaptiveKDE(java.util.List<Event> data, int K)
Creates a Kernel Density Estimation for the data using the adaptive bandwidth method with the default value of (h0 = 0). See: http://www.datalab.uci.edu/papers/kernel_KDD2014.pdf- 参数:
data- - The observed dataK- - K'th nearest neighbor- 返回:
- A "trained" adaptive-KDE model
-
trainAdaptiveKDE
public static KDE trainAdaptiveKDE(java.util.List<Event> data, double h0, int K)
Creates a Kernel Density Estimation for the data using the adaptive bandwidth method. See: http://www.datalab.uci.edu/papers/kernel_KDD2014.pdf- 参数:
data- - The observed datah0- - h0 value (default 1)K- - K'th nearest neighbor- 返回:
- A "trained" adaptive-KDE model
-
logPdf
public double logPdf(Event e)
Computed the log probability of event e. The computation is done by using the kd tree. See: http://www.datalab.uci.edu/papers/kernel_KDD2014.pdf- 参数:
e-- 返回:
- Log probability for event e
-
main
public static void main(java.lang.String... args) throws java.lang.Exception- 抛出:
java.lang.Exception
-
-