mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 07:37:22 +09:00
26 lines
743 B
C#
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);
|
|
}
|
|
}
|
|
}
|