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


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

Data Array Recursive Functioning

From Jason Sidabras <jason.sidabras@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Data Array Recursive Functioning
Date 2011-08-23 09:52 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j2vt8a$2m5$1@smc.vnet.net> (permalink)

Show all headers | View raw


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.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web