Re: Strange behaviour of <=?
- From: "us " <us@xxxxxxxxxxxxxxx>
- Date: Thu, 28 May 2009 09:04:02 +0000 (UTC)
"Mattias " <mattias_winterdahl@xxxxxxxxxxxx> wrote in message <gvljmq$a4s$1@xxxxxxxxxxxxxxxxxx>...
Hi everyone! I have a problem I hope someone could help me with.
I have a vector from which I want to store the values below some percentile. So I tried both quantile() and prctile() like this:
quant_q = quantile(Q, quantile_lim);
while i <= length(Q)
if Q(i) <= quant_q
base_q(j) = Q(i);
...
The strange thing is that I only get values like 0.7000, 0.8000, 0.3000 though I know I have values that are below my quantile limit with another "decimal form", e.g. 0.7422. Why do I only get decimal values that end in zeros? Does anyone know why I get this strange behaviour? I would very much appreciate any help on this!
/MW
can you produce a copy/paste-able example of typical SMALL data set and a complete loop...
us
.
- Follow-Ups:
- Re: Strange behaviour of <=?
- From: Mattias
- Re: Strange behaviour of <=?
- From: Mattias
- Re: Strange behaviour of <=?
- References:
- Strange behaviour of <=?
- From: Mattias
- Strange behaviour of <=?
- Prev by Date: Re: How to do special distribution in Matlab?
- Next by Date: Re: probleme access violation in module libmx.dll
- Previous by thread: Strange behaviour of <=?
- Next by thread: Re: Strange behaviour of <=?
- Index(es):
Relevant Pages
|