Changeset 3608 in Sophya for trunk/SophyaLib/NTools/perandom.cc


Ignore:
Timestamp:
Apr 29, 2009, 9:30:15 PM (16 years ago)
Author:
cmv
Message:

delete de tsfunran.cc,h sans interet + FunRan avec TVector, cmv 29/04/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/perandom.cc

    r3321 r3608  
    9999
    100100/********* Methode *********/
     101/*! Creator from a TVector
     102*/
     103FunRan::FunRan(TVector<r_8>& tab, bool pdf)
     104: Histo(-0.5,tab.Size()-0.5,tab.Size())
     105{
     106  if(tab.Size()<=1)
     107   throw RangeCheckError("TsFunRan::TsFunRan less than 2 bins requested");
     108 for(int_4 i=0;i<tab.Size();i++) (*this)(i) = tab(i);
     109 create_DF(pdf);
     110}
     111
     112/********* Methode *********/
     113/*! Creator from a TVector
     114*/
     115FunRan::FunRan(TVector<r_8>& tab, r_8 xMin, r_8 xMax, bool pdf)
     116: Histo(xMin,xMax,tab.Size())
     117{
     118 if(tab.Size()<=1)
     119   throw RangeCheckError("TsFunRan::TsFunRan less than 2 bins requested");
     120 for(int_4 i=0;i<tab.Size();i++) (*this)(i) = tab(i);
     121 create_DF(pdf);
     122}
     123
     124/********* Methode *********/
    101125/*! Creator from an histogram
    102126If pdf=true, h is a probability density fonction (not necessary normalised).
Note: See TracChangeset for help on using the changeset viewer.