Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

ChiSq1 Class Reference

Inheritance diagram for ChiSq1:

Inheritance graph
[legend]
Collaboration diagram for ChiSq1:

Collaboration graph
[legend]

Public Member Functions

 ChiSq1 (Real)
ExtReal Mean () const
ExtReal Variance () const
Real Next ()

Private Attributes

Real deltasq
Real delta

Constructor & Destructor Documentation

ChiSq1::ChiSq1 Real   ) 
 

Definition at line 355 of file newran.cpp.

References delta, and deltasq.

00355                      : Normal()                // chisquare with 1 df
00356 { deltasq=d; delta=sqrt(d); }


Member Function Documentation

ExtReal ChiSq1::Mean  )  const [inline, virtual]
 

Reimplemented from Normal.

Definition at line 28 of file newran.cpp.

00028 { return 1.0+deltasq; }

Real ChiSq1::Next  )  [virtual]
 

Reimplemented from SymGen.

Definition at line 358 of file newran.cpp.

References delta, SymGen::Next(), and Real.

00359 { Real z=Normal::Next()+delta; return z*z; }

ExtReal ChiSq1::Variance  )  const [inline, virtual]
 

Reimplemented from Normal.

Definition at line 29 of file newran.cpp.

00029 { return 2.0+4.0*deltasq; }


Field Documentation

Real ChiSq1::delta [private]
 

Definition at line 24 of file newran.cpp.

Referenced by ChiSq1(), and Next().

Real ChiSq1::deltasq [private]
 

Definition at line 23 of file newran.cpp.

Referenced by ChiSq1().


The documentation for this class was generated from the following file:
Generated on Fri Dec 5 04:06:17 2003 for Borqueror by doxygen 1.3.3