Ignore:
Timestamp:
10/26/09 14:31:19 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MSpline3.cc

    r9450 r9518  
    157157//     W := fX[i+1]-fX[i]
    158158//
    159 Double_t MSpline3::Integral(Int_t i, Double_t x) const
     159Double_t MSpline3::IntegralBin(Int_t i, Double_t x) const
    160160{
    161161    Double_t x0, y, b, c, d;
     
    171171// Return the integral of the spline's bin i.
    172172//
    173 Double_t MSpline3::Integral(Int_t i) const
     173Double_t MSpline3::IntegralBin(Int_t i) const
    174174{
    175175    Double_t x, y;
     
    177177    GetKnot(i+1, x, y);
    178178
    179     return Integral(i, x);
     179    return IntegralBin(i, x);
    180180}
    181181
     
    189189    const Int_t m = FindX(b);
    190190
    191     Double_t sum = -Integral(n, a);
     191    Double_t sum = -IntegralBin(n, a);
    192192
    193193    for (int i=n; i<=m-1; i++)
    194         sum += Integral(i);
    195 
    196     sum += Integral(m, b);
     194        sum += IntegralBin(i);
     195
     196    sum += IntegralBin(m, b);
    197197
    198198    return sum;
     
    208208
    209209    for (int i=0; i<GetNp()-1; i++)
    210         sum += Integral(i);
     210        sum += IntegralBin(i);
    211211
    212212    return sum;
Note: See TracChangeset for help on using the changeset viewer.