Class ScoreUtils


  • public class ScoreUtils
    extends Object
    • 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