Rev 1333 | Rev 1592 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1333 | fmk | 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 | |||
| 1427 | fmk | 25 | // $Revision: 1.2 $ |
| 26 | // $Date: 2003-04-28 20:51:25 $ |
||
| 1333 | fmk | 27 | // $Source: /usr/local/cvs/OpenSees/SRC/reliability/analysis/analysis/SamplingAnalysis.h,v $ |
| 28 | |||
| 29 | |||
| 30 | // |
||
| 31 | // Written by Terje Haukaas (haukaas@ce.berkeley.edu) |
||
| 32 | // |
||
| 33 | |||
| 34 | #ifndef SamplingAnalysis_h |
||
| 35 | #define SamplingAnalysis_h |
||
| 36 | |||
| 37 | #include <ReliabilityAnalysis.h> |
||
| 38 | #include <ReliabilityDomain.h> |
||
| 39 | #include <ProbabilityTransformation.h> |
||
| 40 | #include <RandomNumberGenerator.h> |
||
| 41 | #include <GFunEvaluator.h> |
||
| 42 | |||
| 43 | #include <fstream> |
||
| 44 | using std::ofstream; |
||
| 45 | |||
| 46 | class SamplingAnalysis : public ReliabilityAnalysis |
||
| 47 | { |
||
| 48 | |||
| 49 | public: |
||
| 50 | SamplingAnalysis( ReliabilityDomain *passedReliabilityDomain, |
||
| 51 | ProbabilityTransformation *passedProbabilityTransformation, |
||
| 52 | GFunEvaluator *passedGFunEvaluator, |
||
| 53 | RandomNumberGenerator *passedRandomNumberGenerator, |
||
| 54 | int passedNumberOfSimulations, |
||
| 55 | double passedTargetCOV, |
||
| 56 | double samplingVariance, |
||
| 57 | int printFlag, |
||
| 1427 | fmk | 58 | const char *fileName, |
| 1333 | fmk | 59 | Vector *startPoint, |
| 60 | int analysisTypeTag); |
||
| 61 | |||
| 62 | ~SamplingAnalysis(); |
||
| 63 | |||
| 64 | int analyze(void); |
||
| 65 | |||
| 66 | protected: |
||
| 67 | |||
| 68 | private: |
||
| 69 | ReliabilityDomain *theReliabilityDomain; |
||
| 70 | ProbabilityTransformation *theProbabilityTransformation; |
||
| 71 | GFunEvaluator *theGFunEvaluator; |
||
| 72 | RandomNumberGenerator *theRandomNumberGenerator; |
||
| 73 | int numberOfSimulations; |
||
| 74 | double targetCOV; |
||
| 75 | double samplingVariance; |
||
| 76 | int printFlag; |
||
| 77 | char *fileName; |
||
| 78 | Vector *startPoint; |
||
| 79 | int analysisTypeTag; |
||
| 80 | }; |
||
| 81 | |||
| 82 | #endif |