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

divide dataset to multiple datasets

Startseite ' Community ' FPScript ' divide dataset to multiple datasets

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

    There’s a dataset which has e.g. 20000 points of data.
    I’d like to divide this dataset to 20 datasets.

    The first divided dataset has;

    First data point of original dataset,
    Second data point of original dataset,…
    1000th data point of original dataset

    The second divided dataset has;

    1001st data point of original dataset,
    1002nd data point of original dataset,…
    2000th data point of original dataset

    I know I could make every divided dataset by using index operator, but it could be complicated if I divide the original dataset into a lot of numbers of datasets.

    Please let me know if you know any way to do it with few formulas.

    #33191
    Anonym
    Gast

    There’s a dataset which has e.g. 20000 points of data.
    I’d like to divide this dataset to 20 datasets.

    The first divided dataset has;

    First data point of original dataset,
    Second data point of original dataset,…
    1000th data point of original dataset

    The second divided dataset has;

    1001st data point of original dataset,
    1002nd data point of original dataset,…
    2000th data point of original dataset

    I know I could make every divided dataset by using index operator, but it could be complicated if I divide the original dataset into a lot of numbers of datasets.

    Please let me know if you know any way to do it with few formulas.

    #33190
    Bernhard Kantz
    Teilnehmer

    1) You could use VBA to create the FPScript formulas (which use the index operator).
    2) You could use the Reshape-function to convert a signal into a signal series.
    Example:

    Formula SignalSeries
    [code]
    Dim y = Reshape(Signal.Y, {20, NumberOfRows(Signal.Y)/ 20})
    Dim x = Reshape(Signal.X, {20, NumberOfRows(Signal.X)/ 20})
    Signal(y,x)
    [/code]

    Now you can create a formula for each signal:
    [code]
    SignalSeries[0]

    [/code]

    support@weisang.com

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