Rev 4805 | 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 | |||
| 3207 | mhscott | 25 | // $Revision: 1.7 $ |
| 26 | // $Date: 2007-11-06 01:00:59 $ |
||
| 291 | mhscott | 27 | // $Source: /usr/local/cvs/OpenSees/SRC/reliability/domain/distributions/UniformRV.h,v $ |
| 28 | |||
| 29 | |||
| 30 | // |
||
| 1334 | fmk | 31 | // Written by Terje Haukaas (haukaas@ce.berkeley.edu) |
| 291 | mhscott | 32 | // |
| 33 | |||
| 34 | #ifndef UniformRV_h |
||
| 35 | #define UniformRV_h |
||
| 36 | |||
| 37 | #include <RandomVariable.h> |
||
| 38 | |||
| 39 | class UniformRV : public RandomVariable |
||
| 40 | { |
||
| 41 | |||
| 42 | public: |
||
| 4724 | mhscott | 43 | UniformRV(int tag, double mean, double stdv); |
| 44 | UniformRV(int tag, const Vector ¶meters); |
||
| 291 | mhscott | 45 | ~UniformRV(); |
| 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); |
||
| 4877 | mackie | 58 | |
| 59 | // sensitivity of CDF with respect to distribution parameters |
||
| 60 | double getCDFMeanSensitivity(void); |
||
| 61 | double getCDFStdvSensitivity(void); |
||
| 62 | int getCDFparameterSensitivity(Vector &dFdP); |
||
| 63 | int getParameterMeanSensitivity(Vector &dPdmu); |
||
| 64 | int getParameterStdvSensitivity(Vector &dPdstdv); |
||
| 4724 | mhscott | 65 | |
| 66 | // other |
||
| 67 | void Print(OPS_Stream &s, int flag = 0); |
||
| 291 | mhscott | 68 | |
| 69 | |||
| 70 | protected: |
||
| 71 | |||
| 72 | private: |
||
| 73 | double a; |
||
| 74 | double b; |
||
| 75 | |||
| 76 | }; |
||
| 77 | |||
| 78 | #endif |
||
| 79 |