Topic
How to adjust the sampling rates of different datasets
Startseite ' Community ' FPScript ' How to adjust the sampling rates of different datasets
- Dieses Thema hat 2 Antworten sowie 1 Teilnehmer und wurde zuletzt vor vor 21 Jahren, 9 Monaten von Bernhard Kantz aktualisiert.
-
AutorBeiträge
-
09.08.2003 um 01:59 Uhr #33430Bernhard KantzTeilnehmer
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?
09.08.2003 um 02:14 Uhr #33428Bernhard KantzTeilnehmerI 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?
09.08.2003 um 02:14 Uhr #33429Bernhard KantzTeilnehmerThere is a function [b]Sample[/b] 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:
[code]
Signal(Dataset1, Sample(Dataset2, Diataset1.x))
[/code]
The formula above should be used only, if the X range of [b]Dataset2[/b] exceeds that of [b]Dataset1[/b]. If the opposite is the case, then the formula should be:
[code]
Signal(Sample(Dataset1, Dataset2.x), Dataset2)
[/code] -
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.