1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-30 02:07:26 +08:00
osu-lazer/osu.Game.Rulesets.Taiko/Difficulty/Evaluators/ColourEvaluator.cs
2022-06-25 22:42:56 +08:00

26 lines
743 B
C#

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
{
// TODO - Share this sigmoid
private static double sigmoid(double val, double center, double width)
{
return Math.Tanh(Math.E * -(val - center) / width);
}
public static double EvaluateDifficultyOf(TaikoDifficultyHitObjectColour colour)
{
return 1;
}
public static double EvaluateDifficultyOf(DifficultyHitObject current)
{
return EvaluateDifficultyOf(((TaikoDifficultyHitObject)current).Colour);
}
}
}