예제 #1
0
        public int ComputeProbabilisticAngle(int wetness)
        {
            double std = Std * (1 + Math.Min(WetnessFactor * wetness + Math.Abs(Angle / 90) * AngleFactor, 1));

            return(ProbabilityHelper.SampleFromNormal(Angle / 90, std) * 90);
        }
예제 #2
0
        public int ComputeProbabilisticDistance(int wetness)
        {
            double std = Std * (1 + Math.Min(WetnessFactor * wetness + Distance * DistanceFactor, 1));

            return(ProbabilityHelper.SampleFromNormal(Distance, std));
        }