2022-06-06 12:42:49 +08:00
|
|
|
using System;
|
|
|
|
using osu.Game.Rulesets.Difficulty.Preprocessing;
|
|
|
|
using osu.Game.Rulesets.Taiko.Difficulty.Preprocessing;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Difficulty.Evaluators
|
|
|
|
{
|
|
|
|
public class ColourEvaluator
|
|
|
|
{
|
2022-06-09 17:22:55 +08:00
|
|
|
// TODO - Share this sigmoid
|
2022-06-06 12:42:49 +08:00
|
|
|
private static double sigmoid(double val, double center, double width)
|
|
|
|
{
|
|
|
|
return Math.Tanh(Math.E * -(val - center) / width);
|
|
|
|
}
|
|
|
|
|
2022-06-23 17:10:30 +08:00
|
|
|
public static double EvaluateDifficultyOf(TaikoDifficultyHitObjectColour colour)
|
2022-06-06 12:42:49 +08:00
|
|
|
{
|
2022-06-25 22:42:56 +08:00
|
|
|
return 1;
|
2022-06-06 12:42:49 +08:00
|
|
|
}
|
2022-06-23 17:10:30 +08:00
|
|
|
|
|
|
|
public static double EvaluateDifficultyOf(DifficultyHitObject current)
|
|
|
|
{
|
|
|
|
return EvaluateDifficultyOf(((TaikoDifficultyHitObject)current).Colour);
|
|
|
|
}
|
2022-06-06 12:42:49 +08:00
|
|
|
}
|
2022-06-09 17:22:55 +08:00
|
|
|
}
|