Topic
Seeking extrema
Startseite ' Community ' FPScript ' Seeking extrema
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 18 Jahren, 5 Monaten von Dirk Kampffmeyer aktualisiert.
-
AutorBeiträge
-
05.12.2006 um 23:23 Uhr #33280Dirk KampffmeyerTeilnehmer
Hello,
I would like to search an extrema and reduce the signal starting from this extrema. The program, however, outputs nothing but a failure of data structure.
dim idxextrema=GlobalMaximum(Ch1,EVENT_INDEX)
CH1[[idxextrema, Empty]]05.12.2006 um 23:23 Uhr #33282Dirk KampffmeyerTeilnehmerHello,
I would like to search an extrema and reduce the signal starting from this extrema. The program, however, outputs nothing but a failure of data structure.
dim idxextrema=GlobalMaximum(Ch1,EVENT_INDEX)
CH1[[idxextrema, Empty]]05.12.2006 um 23:54 Uhr #33281Bernhard KantzTeilnehmerWhy do you use the Value Index operator and Empty as second argument?
The result of GlobalMaximum is a data series with the indices of the maxima. In your case you need a scalar start index and a scalar end index. Use the Index operator. -1 is the index of the last value.
[code]
CH1[idxextrema[0], -1]
[/code]
The result is a signal starting from the first maximum.If you only need the maximum y-value use the [b]Maximum[/b]-function.
[code]
Maximum(ch1) //is equivalent to CH1[idxextrema[0]]
[/code]
support@weisang.com -
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.