Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4530 > unrolled thread

Data Array Recursive Functioning

Started byJason Sidabras <jason.sidabras@gmail.com>
First post2011-08-23 09:52 +0000
Last post2011-08-23 09:52 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Data Array Recursive Functioning Jason Sidabras <jason.sidabras@gmail.com> - 2011-08-23 09:52 +0000

#4530 — Data Array Recursive Functioning

FromJason Sidabras <jason.sidabras@gmail.com>
Date2011-08-23 09:52 +0000
SubjectData Array Recursive Functioning
Message-ID<j2vt8a$2m5$1@smc.vnet.net>
Hello,

Relatively new with advanced Mathematica functional programming so I
was hoping I can get some help here.

I have a set of DataLists:

Data = {DataList1, DataList2,...}

Each list is 4096 points long and they *should* overlap at the 412th
point:

Data[[1,412]]=Data[[2,1]]
Data[[2,412]]=Data[[3,1]] and so on, but because of the measurement
tools they may be off.

When the data was only 412 long it was easy:

for[i=2,i<=Length[Data],i++,
Data[[i]]= (Data[[i-1,412]]-Data[[i,1]])+Data[[i]];
]

would vertically shift the points, then padding each DataList by 412
would align all of the lists together.

In the case of 4096 the issue is the previous vertical shift moves all
of the points, so what is needed is for each "for" loop, the newest
Data should be loaded, not the Data that was loaded in the beginning
of the "for" loop.

I have been playing with FoldList and Map but I am pretty new at those
powerful features.

Any help would be appreciated.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web