How to adjust the sampling rates of different datasets

SupportCommunity FPScript How to adjust the sampling rates of different datasets

Ansicht von 3 Beiträgen - 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #12543
    Bernhard KantzBernhard Kantz
    Moderator

    I want to do an XY display of two datasets with different sampling rates. How can I adjust the datasets to each other so that they have the same length?

    #8206
    Bernhard KantzBernhard Kantz
    Moderator

    I want to do an XY display of two datasets with different sampling rates. How can I adjust the datasets to each other so that they have the same length?

    #8877
    Bernhard KantzBernhard Kantz
    Moderator

    There is a function Sample available in FPScript which can be used to re-sample a dataset. A formula to create a Dataset for XY-display could look like this:

    
    Signal(Dataset1, Sample(Dataset2, Diataset1.x))
    

    The formula above should be used only, if the X range of Dataset2 exceeds that of Dataset1. If the opposite is the case, then the formula should be:

    
    Signal(Sample(Dataset1, Dataset2.x), Dataset2)
    
Ansicht von 3 Beiträgen - 1 bis 3 (von insgesamt 3)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.