Subversion Repositories OpenSees

Rev

Rev 1271 | Rev 2765 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
291 mhscott 1
/* ****************************************************************** **
2
**    OpenSees - Open System for Earthquake Engineering Simulation    **
3
**          Pacific Earthquake Engineering Research Center            **
4
**                                                                    **
5
**                                                                    **
6
** (C) Copyright 2001, The Regents of the University of California    **
7
** All Rights Reserved.                                               **
8
**                                                                    **
9
** Commercial use of this program without express permission of the   **
10
** University of California, Berkeley, is strictly prohibited.  See   **
11
** file 'COPYRIGHT'  in main directory for information on usage and   **
12
** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
13
**                                                                    **
14
** Developed by:                                                      **
15
**   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
16
**   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
17
**   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
18
**                                                                    **
19
** Reliability module developed by:                                   **
20
**   Terje Haukaas (haukaas@ce.berkeley.edu)                          **
21
**   Armen Der Kiureghian (adk@ce.berkeley.edu)                       **
22
**                                                                    **
23
** ****************************************************************** */
24
 
1334 fmk 25
// $Revision: 1.5 $
26
// $Date: 2003-03-04 00:44:33 $
291 mhscott 27
// $Source: /usr/local/cvs/OpenSees/SRC/reliability/domain/distributions/ChiSquareRV.h,v $
28
 
29
 
30
//
1334 fmk 31
// Written by Terje Haukaas (haukaas@ce.berkeley.edu) 
291 mhscott 32
//
33
 
34
#ifndef ChiSquareRV_h
35
#define ChiSquareRV_h
36
 
37
#include <RandomVariable.h>
38
 
39
class ChiSquareRV : public RandomVariable
40
{
41
 
42
public:
43
        ChiSquareRV(int tag,
44
                         double mean,
45
                         double stdv,
46
                         double startValue);
47
        ChiSquareRV(int tag,
48
                         double parameter1,
49
                         double parameter2,
50
                         double parameter3,
51
                         double parameter4,
52
                         double startValue);
53
        ChiSquareRV(int tag,
54
                         double mean,
55
                         double stdv);
56
        ChiSquareRV(int tag,
57
                         double parameter1,
58
                         double parameter2,
59
                         double parameter3,
60
                         double parameter4);
61
        ~ChiSquareRV();
1271 fmk 62
        void Print(OPS_Stream &s, int flag =0);
291 mhscott 63
        double getPDFvalue(double rvValue);
64
        double getCDFvalue(double rvValue);
65
        double getInverseCDFvalue(double probValue);
414 mhscott 66
        const char * getType();
291 mhscott 67
        double getMean();
68
        double getStdv();
69
        double getParameter1();
70
        double getParameter2();
71
        double getParameter3();
72
        double getParameter4();
73
        double getStartValue();
74
 
75
 
76
protected:
77
 
78
private:
79
        double nu;
80
 
81
};
82
 
83
#endif
84