Topic
How to adjust the sampling rates of different datasets
Page d'accueil ' Communauté ' FPScript ' Comment ajuster les taux d'échantillonnage de différents ensembles de données
- Ce sujet contient 2 réponses, 1 participant et a été mis à jour pour la dernière fois par Bernhard Kantz, le il y a 21 années et 11 mois.
-
AuteurMessages
-
09.08.2003 à 01:59 #33430Bernhard KantzParticipant
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 à 02:14 #33428Bernhard KantzParticipantI 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 à 02:14 #33429Bernhard KantzParticipantThere 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] -
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.