Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5680


Ignore:
Timestamp:
03/15/11 07:30:27 (14 years ago)
Author:
gkronber
Message:

#1418 minor change in calculation of normal distribution PDF cutting points.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearDiscriminantAnalysis.cs

    r5678 r5680  
    200200    private static void CalculateCutPoints(double m1, double s1, double m2, double s2, out double x1, out double x2) {
    201201      double a = (s1 * s1 - s2 * s2);
    202       double b = (m1 * s2 * s2 - m2 * s1 * s1);
    203       double c = 2 * s1 * s1 * s2 * s2 * Math.Log(s2) - 2 * s1 * s1 * s2 * s2 * Math.Log(s1) - s1 * s1 * m2 * m2 + s2 * s2 * m1 * m1;
    204202      x1 = -(-m2 * s1 * s1 + m1 * s2 * s2 + Math.Sqrt(s1 * s1 * s2 * s2 * ((m1 - m2) * (m1 - m2) + 2.0 * (-s1 * s1 + s2 * s2) * Math.Log(s2 / s1)))) / a;
    205203      x2 = (m2 * s1 * s1 - m1 * s2 * s2 + Math.Sqrt(s1 * s1 * s2 * s2 * ((m1 - m2) * (m1 - m2) + 2.0 * (-s1 * s1 + s2 * s2) * Math.Log(s2 / s1)))) / a;
Note: See TracChangeset for help on using the changeset viewer.