comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to ignore NaNs in the data array with function cgPercentile.pro or Percentile.pro?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to ignore NaNs in the data array with function cgPercentile.pro or Percentile.pro? [message #90946] Mon, 18 May 2015 06:18 Go to previous message
atmospheric physics is currently offline  atmospheric physics
Messages: 121
Registered: June 2010
Senior Member
Hello,

I have two data arrays one with some missing data and the other without missing data as below:

data = [Randomu(3L, 100) * 100, !Values.F_NAN, !Values.F_NaN]

data1 = [Randomu(3L, 100) * 100]

When I use the cgPercentiles, I don't want missing data to be included.

Print, cgPercentiles(data, Percentiles=[0.25, 0.5, 0.75])
21.8058 52.4532 77.3341

Print, cgPercentiles(data1, Percentiles=[0.25, 0.5, 0.75])
21.8058 51.3569 76.6930

Does this make sense to ignore missing data from the data array while obtaining the percentiles?

Thanks in advance,
Regards,
Madhavan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Spawn under Mac Os Yosemite
Next Topic: Distance between coordinates

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:37:52 PDT 2025

Total time taken to generate the page: 0.00348 seconds