Topic
Script/Formel vergleich von 2 Datensätzen
- This topic has 2 replies and 2 voices and was last updated 13 years, 5 months ago ago by Andreas Schüssler.
-
AuthorPosts
-
11.12.2011 at 21:00 #33500Andreas SchüsslerParticipant
Guten Tag
Ich habe folgendes Problem. Ich benötige ein Script bzw. Formel, indem ich zwei Datensätze miteinander vergleiche.
Datensatz1: Stufensignal (ganze Zahlen, steigend und fallend)
z.B.: 0,0,1,1,1,2,2,3,3,3,3,3,2,2,2,1,1)Datensatz2: z.B. Sinuskurve mit Rauschen
Anforderungen an das Script:
lokales Extremum des Datensatzes2 in den Intervallen während der Dauer des anliegenden Signals “0,0”,”1,1,1″,”2,2″… aus Datensatz1.
Vielen Dank für Ihre Hilfe
11.12.2011 at 21:00 #33502Andreas SchüsslerParticipantGuten Tag
Ich habe folgendes Problem. Ich benötige ein Script bzw. Formel, indem ich zwei Datensätze miteinander vergleiche.
Datensatz1: Stufensignal (ganze Zahlen, steigend und fallend)
z.B.: 0,0,1,1,1,2,2,3,3,3,3,3,2,2,2,1,1)Datensatz2: z.B. Sinuskurve mit Rauschen
Anforderungen an das Script:
lokales Extremum des Datensatzes2 in den Intervallen während der Dauer des anliegenden Signals “0,0”,”1,1,1″,”2,2″… aus Datensatz1.
Vielen Dank für Ihre Hilfe
29.02.2012 at 08:43 #33501Bernhard KantzParticipantAt first you have to calculate the positions where the first dataset changes the level. For this you can use the [b]LevelCrossings[/b] function. After that you have to program a loop and calculate the data range of the second dataset where the values of the first dataset are equal. For this you can use the index operator []. For each data range you can calculate a local extrema using the [b]Extrema[/b] function.
-
AuthorPosts
- You must be logged in to reply to this topic.