Rev 4724 | 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 | |||
| 2765 | mhscott | 25 | // $Revision: 1.6 $ |
| 26 | // $Date: 2007-02-17 21:27:23 $ |
||
| 291 | mhscott | 27 | // $Source: /usr/local/cvs/OpenSees/SRC/reliability/domain/distributions/ShiftedExponentialRV.h,v $ |
| 28 | |||
| 29 | |||
| 30 | // |
||
| 1334 | fmk | 31 | // Written by Terje Haukaas (haukaas@ce.berkeley.edu) |
| 291 | mhscott | 32 | // |
| 33 | |||
| 34 | #ifndef ShiftedExponentialRV_h |
||
| 35 | #define ShiftedExponentialRV_h |
||
| 36 | |||
| 37 | #include <RandomVariable.h> |
||
| 38 | |||
| 39 | class ShiftedExponentialRV : public RandomVariable |
||
| 40 | { |
||
| 41 | |||
| 42 | public: |
||
| 4724 | mhscott | 43 | ShiftedExponentialRV(int tag, double mean, double stdv); |
| 44 | ShiftedExponentialRV(int tag, const Vector ¶meters); |
||
| 291 | mhscott | 45 | ~ShiftedExponentialRV(); |
| 4724 | mhscott | 46 | |
| 47 | // pure virtual defining variable type and properties |
||
| 48 | const char* getType(); |
||
| 291 | mhscott | 49 | double getMean(); |
| 50 | double getStdv(); |
||
| 4724 | mhscott | 51 | const Vector &getParameters(); |
| 52 | int setParameters(double mean, double stdv); |
||
| 53 | |||
| 54 | // RV functionality |
||
| 55 | double getPDFvalue(double rvValue); |
||
| 56 | double getCDFvalue(double rvValue); |
||
| 57 | double getInverseCDFvalue(double rvValue); |
||
| 58 | |||
| 59 | // other |
||
| 60 | void Print(OPS_Stream &s, int flag = 0); |
||
| 291 | mhscott | 61 | |
| 62 | protected: |
||
| 63 | |||
| 64 | private: |
||
| 65 | double lambda; |
||
| 66 | double x0; |
||
| 67 | |||
| 68 | }; |
||
| 69 | |||
| 70 | #endif |