Re: [eigen] first time usage by me! and very satisfied! |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] first time usage by me! and very satisfied!
- From: "Gael Guennebaud" <gael.guennebaud@xxxxxxxxx>
- Date: Fri, 12 Sep 2008 14:38:08 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=VQhqI+uDqmvShexBrMeElIkC7QtJGJ33vBLFsXdrPT4=; b=shx9RI7XybalPqGZIP2uE+f9dzLrp33kAgdX6OUTMxk68lr2E9HdPZo+F9zOKpqEV4 Ty7/v8piIkFyfz6pvOShppIT1gAA4AVcdsGhy3pP8Bbmaighj8+iwDa9eQyZ3KMT4uvE I+c39Fth4M6M7VEPUjuT+E2OT+RXnOwf2AInU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=LyS+p6MCALYeKwJzuoGRrG2Pdi3X1uLi2Q39AhALNfsLNd+REqZwoPvaY6lbPzCqNH zg/A8k6c72IB5wwxo40SX0t8Eu+bVo1Q+yMi6SpiwWXkjJAsstc/Q/Qq+aKN/bScJtf6 qDi5neVvLman8T44clFql2ItpF0mCRao3Col4=
thank you Andre.
indeed I though it would not harm to add shortcuts for most common
statistic reduction methods. they would be added in the Array module,
and also be available in a column and row wise flavors. just one
thing: actually the stddev and variance need to first compute the mean
and I guess that often you want both, so I suggest to have 2 versions
of stddev and variance like this:
/* use the precomputed mean to compute the stddev */
Scalar stddev(const Scalar& mean) const;
/* shortcut */
Scalar stddev() const { return stddev(mean()); }
maybe we can even have a single version with a default arg value:
Scalar stddev(const Scalar& _mean = mean()) const;
but I don't know if it's legal to call a non static member function on *this...
I prefer that to something like:
Scalar stddev(Scalar* returnedMean = 0) const;
because in case you have already computed the mean value you cannot
tell stddev to use it...
so to summarize we would add:
* mean()
* standardDeviation([precomputed_mean])
yeah, eventually "standardDeviation" is not too long
* variance([precomputed_mean])
* median()
maybe here we could have an optional argument to tell if the vector is
already sorted ??
* sort()
median needs a sort algo, and here I really mean "sort", not "sorted",
so it an in-place sort
cheers,
gael.
On Thu, Sep 11, 2008 at 8:29 PM, Andre Krause <post@xxxxxxxxxxxxxxxx> wrote:
> dear list, just wanted to let you all know i am using eigen2 alpha 07 for the
> first time - and i am very satisfied. works like charm, with no problems on
> win32 and visualc++ 2008.
>
> though i am missing some basic convenience functions like mean, medium, stdev
> etc. . i already heard on #eigen, that they are planned for some future release.
>
> kind regards,
> andre
>
>
>