nenok.va.semiring
Class SRPredictor
java.lang.Object
nenok.va.semiring.SRPredictor
- All Implemented Interfaces:
- Serializable, Predictor
public class SRPredictor
- extends Object
- implements Predictor
A weight predictor for semiring induced valuation algebras
implemented as a SINGLETON design pattern.
- Version:
- 1.1
- Author:
- Marc Pouly
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static SRPredictor getInstance()
- Returns:
- An instance of this class - SINGLETON design pattern.
predict
public int predict(Domain dom)
- Description copied from interface:
Predictor
- Predicts the weight of a valuation from its domain.
- Specified by:
predict
in interface Predictor
- Parameters:
dom
- The domain to compute the valuation's weight.
- Returns:
- The predicted weight of the valuation with domain
dom
. - See Also:
Predictor.predict(nenok.va.Domain)