public class KDE extends Object
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
double |
logPdf(Event e) |
Computed the log probability of event e.
|
static void |
main(String... args) |
|
static KDE |
trainAdaptiveKDE(List<Event> data,
double h0,
int K) |
Creates a Kernel Density Estimation for the data using the adaptive bandwidth method.
|
static KDE |
trainAdaptiveKDE(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 KDE |
trainFixedKDE(List<Event> data,
double h) |
Creates a Kernel Density Estimation for the data using the fixed bandwidth method.
|
public static KDE trainFixedKDE(List<Event> data, double h)
data - - The observed datah - - The fixed bandwidthpublic static KDE trainAdaptiveKDE(List<Event> data, int K)
data - - The observed dataK - - K'th nearest neighborpublic static KDE trainAdaptiveKDE(List<Event> data, double h0, int K)
data - - The observed datah0 - - h0 value (default 1)K - - K'th nearest neighborpublic double logPdf(Event e)
e - Copyright © 2019. All rights reserved.