Search Comments and Ratings

go

   
Date File Comment by Comment Rating
17 Nov 2013 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
SCADA Miner

woops someone already pointed this out. Ignore comment below

Comment only
17 Nov 2013 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
SCADA Miner

Hi I think there is a bug in nanmedian - i have a dataset (single row), DS, which contains no NaN values, but nanmedian(DS) = NaN. Matlab's normal median(DS)=0.
I think this is the problem - when the median actually equals zero, nanmedian thinks it =nan.

4
09 Aug 2012 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Anna

Anna (view profile)

5
08 Nov 2011 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
David

David (view profile)

Just what I was looking for :-)
Haven't looked at why, but seems to run a little slowly.
Thanks :-)

5
11 Oct 2011 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Philip West

The issue Binu found is also present in the nanvar function. where:

NaNsuite y = nanvar(x,dim,flag)
MATLAB y = nanvar(X,flag,dim)

Comment only
11 Apr 2011 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
William Thielicke

Thanks for the contribution!

5
14 Mar 2011 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Binu

Binu (view profile)

There is a bug in the order by which the Nan suite calls the 'dim' argument. This matters if you have replaced the matlab 'NaN' functions with the Nan suite.

NaNsuite y = nanstd(x,dim,flag)
MATLAB y = nanstd(X,flag,dim)
y = std(X,flag,dim)

Comment only
21 Dec 2010 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Thomas Clark

Brilliant, thanks.

I'd give five stars if Andrei's bugfix were included. Will upgrade to 5* if the bug is fixed :)

3
22 Sep 2010 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Thul Dai

Great package, thanks!

Also agreeing on the bug as well as fix found by Andrei Terebilo on 09 Oct 2009. Would be nice if the downloadable package could be fixed.

5
23 Feb 2010 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
WP

WP (view profile)

Thank you so much, this is useful!

Comment only
09 Oct 2009 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Andrei Terebilo

Little bug here (otherwise great, thanks):

>> nanmedian([0 0 0 0 0 1])
ans =
NaN

Just modify line 71:
i = find(y==0);
to
i = find(s==0);

5
12 Jan 2009 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
miguel Ampudia

is there any function to do quintiles ignoring NaN? Thanks!

Comment only
05 Aug 2008 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
C D

This is a great suite of functions. I did notice the max/min toolbox functions in M7 filtered NaN's from the calculations. However, the other functions did not. So, that's where the NaN suite came in handy.

5
10 Jul 2008 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
David Redish

Thank you for fixing this. We have been bitten regularly by Mathworks' strange decision to define nanxyz(all-nans) as 0, which propogates nans incorrectly. This suite has helped us tremendously.

5
07 May 2008 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Pieter Kuppens

Isn't life as simple as this:
nanmean(a) = mean(a(find(~isnan(a))))

Comment only
05 May 2008 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
anony mouse

genius!

5
03 Feb 2008 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Santosh Verma

nice

5
12 Sep 2007 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Uri Merhav

Great minds think alike, I see. I was just about to write out this code myself when I realized someone out there must also be using nan as a non-measurement, and want it ignored while computing average and standard deviation.

Good job.

5
04 Aug 2006 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
dgfgf ddf

thanks a lot

5
08 Aug 2005 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Rudolf von Steiger

5
31 May 2005 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Daphne Weihs

Thanks!
This happened to be just what I needed.

5
19 Mar 2005 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Can Ozan Tan

pretty handy

5
24 Feb 2005 NaN Suite Descriptive Statistics for N-D matrices ignoring NaNs. Author: Jan Gläscher

Jan Gläscher (view profile)

  • 1 file
  • 122 downloads
  • 4.82353
Julie Golomb

so useful -- thank you!

5

Contact us