Autocorrelation function (same with matlab) is needed !!

Hey there,

I need an autocorrelation function that will take a serries and return as result the autocorrelation series of the signal just as matlab autocorr.m do.

I Could do it in matlab but since my thesis project is in java i prefer a method of doing the same job with autocorr in matlab but in java.

I try a lot of methods found around but i dont get the same results with the ones i get from matlab autocorr.

If anyone has anything that can help please reply.