FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro-Support
Wissen
Community
Über Uns
Referenzen
Jobs
Allgemeiner Kontakt
Händlerverzeichnis
FlexPro-Support
DE
EN
FR
Placeholder
Produkte und Lösungen
Support und Downloads
Unternehmen
Magazin
Kontakt
Sprache
MyWeisang

Account Einstellungen

Topic

Extract data around extrema

Startseite ' Community ' FPScript ' Extract data around extrema

Anzeigen von 4-Stellen - 1 bis 4 (von insgesamt 4)
  • Autor
    Beiträge
  • #33463
    Anonym
    Gast

    Hello,

    I’d like to extract data before and after 1000 from extrema.

    I created following formula but it doesn’t work.

    Dim myP = GlobalExtrema(‘Dataset1’,EVENT_POSITIVE,EVENT_INDEX)
    Dim S, F
    S = myP – 1000
    F = myP + 1000
    ‘Dataset1′[S, F]

    Please tell me what’s wrong with it 😥

    Masahiro

    #33466
    Anonym
    Gast

    Hello,

    I’d like to extract data before and after 1000 from extrema.

    I created following formula but it doesn’t work.

    Dim myP = GlobalExtrema(‘Dataset1’,EVENT_POSITIVE,EVENT_INDEX)
    Dim S, F
    S = myP – 1000
    F = myP + 1000
    ‘Dataset1′[S, F]

    Please tell me what’s wrong with it 😥

    Masahiro

    #33464
    Bernhard Kantz
    Teilnehmer

    The GlobalExtrema-function returns a data series with the indices. Therefore you have to change your FPScript formula as follows:

    Dim myP = GlobalExtrema(‘Dataset1’, EVENT_POSITIVE, EVENT_INDEX)[b][0][/b]

    support@weisang.com

    #33465
    Anonym
    Gast

    Thank you.

    Now it works fine!

Anzeigen von 4-Stellen - 1 bis 4 (von insgesamt 4)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.