AddingSensitivity:BEGIN //////////////////////////////////////////
| 233 | |
| 234 | // AddingSensitivity:BEGIN ////////////////////////////////////////// |
| 235 | double |
| 236 | TrigSeries::getFactorSensitivity(double pseudoTime) |
| 237 | { |
| 238 | static double twopi = 4*asin(1.0); |
| 239 | |
| 240 | if (pseudoTime >= tStart && pseudoTime <= tFinish) { |
| 241 | double phi = phaseShift - period/twopi*asin(zeroShift/cFactor); |
| 242 | if (parameterID == 1) |
| 243 | return sin(twopi*(pseudoTime-tStart)/period + phi); |
| 244 | if (parameterID == 2) |
| 245 | return cFactor*cos(twopi*(pseudoTime-tStart)/period + phi)*(-twopi*(pseudoTime-tStart)/(period*period)); |
| 246 | |
| 247 | return 0.0; |
| 248 | } |
| 249 | |
| 250 | return 0.0; |
| 251 | } |
| 252 | |
| 253 | int |
| 254 | TrigSeries::setParameter(const char **argv, int argc, Parameter ¶m) |
no outgoing calls
no test coverage detected