Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.2.0.CR1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.optaplanner.core.impl.score
Class ScoreUtils

    java.lang.Object
      org.optaplanner.core.impl.score.ScoreUtils

    public class ScoreUtils

extends Object

Method Summary
`static double` | `calculateTimeGradient(Number[] totalDiffNumbers, Number[] scoreDiffNumbers, double[] timeGradientWeightNumbers, int levelDepth)`
`static double[]` | `extractLevelDoubles(Score score)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### extractLevelDoubles

    public static double[] extractLevelDoubles(Score score)

### calculateTimeGradient

    public static double calculateTimeGradient(Number[] totalDiffNumbers,
                                               Number[] scoreDiffNumbers,
                                               double[] timeGradientWeightNumbers,
                                               int levelDepth)

  Parameters:
    `totalDiffNumbers` - never null
    `scoreDiffNumbers` - never null
    `timeGradientWeightNumbers` - never null
    `levelDepth` - The number of levels of the diffNumbers that are included
  Returns:
    0.0 <= value <= 1.0

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.2.0.CR1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.