Package opennlp.tools.ml.model
Klasse MutableContext
java.lang.Object
opennlp.tools.ml.model.Context
opennlp.tools.ml.model.MutableContext
An extension of 
Context used to store parameters or expected values
 associated with this context which can be updated or assigned.- Siehe auch:
- 
KonstruktorübersichtKonstruktorenKonstruktorBeschreibungMutableContext(int[] outcomePattern, double[] parameters) Creates a new parameters object with the specified parameters associated with the specified outcome pattern.
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungbooleancontains(int outcome) voidsetParameter(int outcomeIndex, double value) Assigns the parameter or expected value at the specified outcomeIndex the specified value.voidupdateParameter(int outcomeIndex, double value) Updated the parameter or expected value at the specified outcomeIndex by adding the specified value to its current value.Von Klasse geerbte Methoden opennlp.tools.ml.model.Contextequals, getOutcomes, getParameters, hashCode
- 
Konstruktordetails- 
MutableContextpublic MutableContext(int[] outcomePattern, double[] parameters) Creates a new parameters object with the specified parameters associated with the specified outcome pattern.- Parameter:
- outcomePattern- Array of outcomes for which parameters exists for this context.
- parameters- Parameters for the outcomes specified.
 
 
- 
- 
Methodendetails- 
setParameterpublic void setParameter(int outcomeIndex, double value) Assigns the parameter or expected value at the specified outcomeIndex the specified value.- Parameter:
- outcomeIndex- The index of the parameter or expected value to be updated.
- value- The value to be assigned.
 
- 
updateParameterpublic 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.- Parameter:
- outcomeIndex- The index of the parameter or expected value to be updated.
- value- The value to be added.
 
- 
containspublic boolean contains(int outcome) 
 
-