| java.lang.Object org.cougaar.planning.ldm.plan.ScoringFunction org.cougaar.glm.util.GLMLocationScoringFunction
GLMLocationScoringFunction | public class GLMLocationScoringFunction extends ScoringFunction.PreferredValueScoringFunction (Code) | | Represents a location scoring function - score gets worse (higher or lower?)
as straight-line distance from Lat, Lon increases.
?We'd like this to be part of the COUGAAR baseline...?
|
EPSILON | public static double EPSILON(Code) | | |
getMaxInRange | public AspectScorePoint getMaxInRange(AspectValue lowerbound, AspectValue upperbound)(Code) | | This doesn't make any sense --- there is no way to represent this.
Geolocs are two-tuples, and so don't map onto AspectValues, which
are doubles.
Parameters: lowerbound - (ignored) Parameters: upperbound - (ignored) null |
getMinInRange | public AspectScorePoint getMinInRange(AspectValue lowerbound, AspectValue upperbound)(Code) | | This doesn't make any sense --- there is no way to represent this.
Geolocs are two-tuples, and so don't map onto AspectValues, which
are doubles.
Parameters: lowerbound - (ignored) Parameters: upperbound - (ignored) null |
getScore | public double getScore(AspectValue av)(Code) | | The score is based on the distance between the two points in furlongs.
There are many better measures, but this works for now.
WORST if bad data only, though we should probably throw an exception |
getValidRanges | public Enumeration getValidRanges(AspectValue lowerbound, AspectValue upperbound)(Code) | | This doesn't make any sense --- there is no way to represent this.
Geolocs are two-tuples, and so don't map onto AspectValues, which
are doubles.
Parameters: lowerbound - (ignored) Parameters: upperbound - (ignored) Enumeration |
Methods inherited from org.cougaar.planning.ldm.plan.ScoringFunction | final public static void checkValidCurve(AspectScorePoint[] curve)(Code)(Java Doc) abstract public Object clone()(Code)(Java Doc) final public static ScoringFunction createConstantScoringFunction(double score, int type)(Code)(Java Doc) final public static ScoringFunction createConstantScoringFunction(AspectScorePoint score)(Code)(Java Doc) final public static ScoringFunction createEnumerated(AspectScorePoint[] points)(Code)(Java Doc) final public static ScoringFunction createNearOrAbove(AspectValue value, double slope)(Code)(Java Doc) final public static ScoringFunction createNearOrBelow(AspectValue value, double slope)(Code)(Java Doc) final public static ScoringFunction createPiecewiseLinearScoringFunction(Enumeration points)(Code)(Java Doc) final public static ScoringFunction createPiecewiseLinearScoringFunction(AspectScorePoint[] points)(Code)(Java Doc) final public static ScoringFunction createPreferredAtValue(AspectValue value, double slope)(Code)(Java Doc) final public static ScoringFunction createPreferredBetweenValues(AspectValue low, AspectValue high, double slope)(Code)(Java Doc) final public static ScoringFunction createStepScoringFunction(AspectValue changepoint, double prescore, double postscore)(Code)(Java Doc) final public static ScoringFunction createStrictlyAtValue(AspectValue value)(Code)(Java Doc) final public static ScoringFunction createStrictlyBetweenValues(AspectValue low, AspectValue high)(Code)(Java Doc) final public static ScoringFunction createStrictlyBetweenWithBestValues(AspectValue low, AspectValue best, AspectValue high)(Code)(Java Doc) final public static ScoringFunction createVScoringFunction(AspectValue low, AspectValue best, AspectValue high)(Code)(Java Doc) final public static ScoringFunction createVScoringFunction(AspectValue low, AspectValue best, AspectValue high, double ok)(Code)(Java Doc) abstract public AspectScorePoint getBest()(Code)(Java Doc) public AspectScoreRange getDefinedRange()(Code)(Java Doc) abstract public AspectScorePoint getMaxInRange(AspectValue lowerbound, AspectValue upperbound)(Code)(Java Doc) abstract public AspectScorePoint getMinInRange(AspectValue lowerbound, AspectValue upperbound)(Code)(Java Doc) abstract public double getScore(AspectValue value)(Code)(Java Doc) abstract public Enumeration getValidRanges(AspectValue lowerbound, AspectValue upperbound)(Code)(Java Doc) public static void main(String[] args)(Code)(Java Doc) final protected static AspectScorePoint newASP(double value, double score, int type)(Code)(Java Doc)
|
|
|