00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef DiscretizedRandomProcessSeries_h
00036 #define DiscretizedRandomProcessSeries_h
00037
00038 #include <TimeSeries.h>
00039 #include <ModulatingFunction.h>
00040
00041 class DiscretizedRandomProcessSeries : public TimeSeries
00042 {
00043 public:
00044 DiscretizedRandomProcessSeries(int num,
00045 ModulatingFunction **theModFuncs,
00046 double p_mean,
00047 double targetStdv);
00048 ~DiscretizedRandomProcessSeries();
00049
00050
00051 double getFactor(double pseudoTime);
00052
00053
00054
00055 double getDuration () {return 0.0;}
00056 double getPeakFactor () {return 0.0;}
00057 double getTimeIncr (double pseudoTime) {return 1.0;}
00058
00059
00060 int sendSelf(int commitTag, Channel &theChannel);
00061 int recvSelf(int commitTag, Channel &theChannel,
00062 FEM_ObjectBroker &theBroker);
00063
00064 void Print(OPS_Stream &s, int flag =0);
00065
00066
00067 int setParameter (const char **argv, int argc, Parameter ¶m);
00068 int updateParameter (int parameterID, Information &info);
00069 int activateParameter(int parameterID);
00070 double getFactorSensitivity(double time);
00071
00072
00073 protected:
00074
00075 private:
00076 int numModFuncs;
00077 double c;
00078 double mean;
00079 double maxStdv;
00080 double maxStdvTime;
00081 ModulatingFunction **theModulatingFunctions;
00082 Vector *randomVariables;
00083 Vector *kickInTimes;
00084 int parameterID;
00085 };
00086
00087 #endif