PeakCount (FPScript)
Performs a peak value count from the Rainflow Matrix or Markov Matrix. The function counts the absolute or cumulated frequencies of peak or trough values.
Syntax
PeakCount(Matrix, Result)
The syntax of the PeakCount function consists of the following parts:
Part |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|
Matrix |
The Markov or Rainflow matrix to be evaluated. If the matrix is specified as a signal series with a Z component, the X and Z components must contain the midpoints of the class division that the matrix is based on. Permitted data structures are data matrix und signal series. All real data types are permitted. If the argument is a list, then the function is executed for each element of the list and the result is also a list. |
||||||||
Result |
Specifies whether peak or trough values must be counted and whether cumulated frequencies are to be determined. The argument Result can have the following values:
If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. |
Remarks
If cumulated frequencies are required, for positive ranges, the frequencies of the respective class and all higher classes are totaled, for troughs, all of the lower classes are totaled accordingly. If the Matrix was passed as a signal series, the result is a signal whose X component corresponds to that of the Matrix. Otherwise, the result is a data series.
Available in
Option Counting Procedures
Examples
PeakCount(MarkovMatrix, COUNT_PLUS) |
Counts the peaks of the Markov matrix determined with the MarkovMatrix function. |
PeakCount(RainflowMatrix, COUNT_MINUS) |
Counts the trough values of the Rainflow matrix determined with the RainflowMatrix function. |