public interface Prior
Modifier and Type | Method and Description |
---|---|
void |
logPrior(double[] dist,
Context[] context,
float[] values)
Populates the specified array with the the log of the distribution for the specified context.
|
void |
logPrior(double[] dist,
int[] context)
Populates the specified array with the the log of the distribution for the specified context.
|
void |
logPrior(double[] dist,
int[] context,
float[] values)
Populates the specified array with the the log of the distribution for the specified context.
|
void |
setLabels(String[] outcomeLabels,
String[] contextLabels)
Method to specify the label for the outcomes and contexts.
|
void logPrior(double[] dist, int[] context)
dist
- An array to be populated with the log of the prior distribution.context
- The indices of the contextual predicates for an event.void logPrior(double[] dist, int[] context, float[] values)
dist
- An array to be populated with the log of the prior distribution.context
- The indices of the contextual predicates for an event.values
- The values associated with the context.void logPrior(double[] dist, Context[] context, float[] values)
dist
- An array to be populated with the log of the prior distribution.context
- The indices of the contextual predicates for an event.values
- The values associated with the context.void setLabels(String[] outcomeLabels, String[] contextLabels)
outcomeLabels
- An array of each outcome label.contextLabels
- An array of each context label.Copyright © 2021 The Apache Software Foundation. All rights reserved.