Package jline.lib.butools.trace
Class PdfFromTraceKt
-
- All Implemented Interfaces:
public final class PdfFromTraceKt
-
-
Method Summary
Modifier and Type Method Description final static PdfResultpdfFromTrace(DoubleArray trace, DoubleArray intBounds)Returns the empirical density function of a trace. final static PdfResultpdfFromWeightedTrace(DoubleArray trace, DoubleArray weights, DoubleArray intBounds)Returns the empirical density function of a weighted trace. -
-
Method Detail
-
pdfFromTrace
final static PdfResult pdfFromTrace(DoubleArray trace, DoubleArray intBounds)
Returns the empirical density function of a trace.
- Parameters:
trace- The trace dataintBounds- The array of interval boundaries.- Returns:
PdfResult containing x (center of intervals) and y (values) of the empirical PDF
-
pdfFromWeightedTrace
final static PdfResult pdfFromWeightedTrace(DoubleArray trace, DoubleArray weights, DoubleArray intBounds)
Returns the empirical density function of a weighted trace.
- Parameters:
trace- The trace dataweights- The weights for each sampleintBounds- The array of interval boundaries.- Returns:
PdfResult containing x (center of intervals) and y (values) of the empirical PDF
-
-
-
-