Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'compile' topicStudent Support Forum > General > Archives > "compile"

Next Comment >Help
Author Comment/Response
03/17/07 1:24pm


In general I can't compile function that variables are list. For example, I would like to compile the following function:

AutoCov[data_, lag_] := (L = Length[data]; Mean[
Take[data, L - lag]*Take[data, -(L -
lag)]] - Mean[Take[data, L - lag]]*Mean[Take[data, -(L - lag)]])

where data is a 1-D list of real valued data and L,n
are integers.

Another question that that I would like to ask is if it is possiple to use recursive function within compile.

Thank you in advance,

Best wishes


URL: ,

Thread 'compile' is now CLOSED
Author Date Posted
compile simon 03/17/07 1:24pm
Re: compile yehuda ben-s... 03/18/07 08:12am
Next Comment >Help