Page 1 of 1

'Too less data' error

Posted: Tue Feb 7, 2012 12:04
by rp111
Hello:

I am using the CRP toolbox and using it like this:

rp=crp2(x);

where 'x' is a data matrix of several columns (more than two).

For some contents of 'x', not always, I get this error:

??? Error using ==> crp2 at 297
Too less data
Either too much NaN or the number of columns in the vectors do not match.


However, 'x' does not have any 'NaN' value and the second diagnostic (mismatching number of column) possibly only applies when two data parameters are provided (which is not the case).

I wonder if the problem may have something to do with entries with value 0. Are zero values within 'x' treated in a special way?

Any hint on what might be wrong, why and how to fix it?

Thank you very much,

Javier

Re: 'Too less data' error

Posted: Sun Feb 12, 2012 21:11
by Norbert
Hello,

what is the dimension of your time series vector x? It looks like you are using a row-vector (where the values are arranged horizontally) instead of a column vector (values arranged vertically). Please check by simply using

Code: Select all

crp2(x')
Best regards
Norbert

Re: 'Too less data' error

Posted: Mon Feb 13, 2012 10:48
by rp111
My time series vector x is actually a Matlab matrix (say, 80x10), and I get this error with both crp(x) and crp2(x').

I don't really understand what may be wrong.

Re: 'Too less data' error

Posted: Tue Feb 28, 2012 22:49
by Norbert
Hm, strange, then it should work. I will check it in the next days.