public class MutableContext extends Context
| Constructor and Description | 
|---|
MutableContext(int[] outcomePattern,
              double[] parameters)
Creates a new parameters object with the specified parameters associated with the specified
 outcome pattern. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
contains(int outcome)  | 
void | 
setParameter(int outcomeIndex,
            double value)
Assigns the parameter or expected value at the specified outcomeIndex the specified value. 
 | 
void | 
updateParameter(int outcomeIndex,
               double value)
Updated the parameter or expected value at the specified outcomeIndex by
 adding the specified value to its current value. 
 | 
equals, getOutcomes, getParameters, hashCodepublic MutableContext(int[] outcomePattern,
                      double[] parameters)
outcomePattern - Array of outcomes for which parameters exists for this context.parameters - Parameters for the outcomes specified.public void setParameter(int outcomeIndex,
                         double value)
outcomeIndex - The index of the parameter or expected value to be updated.value - The value to be assigned.public void updateParameter(int outcomeIndex,
                            double value)
outcomeIndex - The index of the parameter or expected value to be updated.value - The value to be added.public boolean contains(int outcome)
Copyright © 2017 The Apache Software Foundation. All rights reserved.