'Too less data' error

Bugs found in software.

'Too less data' error

Postby rp111 » Tue Feb 7, 2012 12:04

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
rp111
Junior
 
Posts: 2
Joined: Tue Feb 7, 2012 11:41

Re: 'Too less data' error

Postby Norbert » Sun Feb 12, 2012 21:11

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
User avatar
Norbert
Expert
 
Posts: 173
Joined: Wed Jan 4, 2006 11:03
Location: Potsdam Institute for Climate Impact Research, Germany

Re: 'Too less data' error

Postby rp111 » Mon Feb 13, 2012 10:48

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.
rp111
Junior
 
Posts: 2
Joined: Tue Feb 7, 2012 11:41

Re: 'Too less data' error

Postby Norbert » Tue Feb 28, 2012 22:49

Hm, strange, then it should work. I will check it in the next days.
User avatar
Norbert
Expert
 
Posts: 173
Joined: Wed Jan 4, 2006 11:03
Location: Potsdam Institute for Climate Impact Research, Germany


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron