473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Are there statistics packages in ANSI C and/or ANSI C++?

Like this one?

http://commons.apache.org/math/userguide/stat.html

Basically I need the mean, standard deviation and skewness and
preferably a legal hassles free one

Thanks
lbrtchx
Jun 27 '08 #1
17 2475
lb*****@gmail.com wrote:
Like this one?

http://commons.apache.org/math/userguide/stat.html

Basically I need the mean, standard deviation and skewness and
preferably a legal hassles free one

Thanks
lbrtchx
The lcc-win compiler system provides a statistical library.
Here is the header file to give you an idea
#ifndef __stats_h__
#define __stats_h__
// Beta distribution
long double beta_distribution(long double a,long double b, long double x);
// Beta distribution inverse
long double beta_distribution_inv(long double, long double, long double);
//Incomplete beta integral.
long double beta_incomplete (long double a,long double b,long double x);
//Inverse of incomplete beta integral.
long double beta_incomplete_inv (long double a,long double b,long double y);
//Binomial distribution function.
long double binomial(unsigned int k, unsigned int n, long double p);
//Binomial distribution function complemented.
long double binomial_c(unsigned int k, unsigned int n, long double p);
//Binomial distribution function inverse
long double binomial_inv(unsigned int k, unsigned int n , long double y);
//Negative binomial distribution .
long double binomial_neg_distribution(unsigned int k, unsigned int
n,long double p);
//Negative binomial distribution complement.
long double binomial_neg_distribution_c (unsigned int k, unsigned int
n,long double p);
//Inverse of negative binomial distribution.
long double binomial_neg_distribution_inv(unsigned int k, unsigned int
n,long double p);
//Chi-squared distribution function.
long double chi_sqr_distribution(long double df,long double x);
//Chi-squared distribution function complemented.
long double chi_sqr_distribution_c(long double df, long double x);
//Inverse of Chi-squared distribution function complemented.
long double chi_sqr_distribution_cinv(long double df,long double p);
// Fisher distribution
long double fisher_distribution(unsigned int a, unsigned int b,long
double c);
//Fisher F distribution complemented.
long double fisher_distribution_c(unsigned int ia, unsigned int ib,long
double c);
// Inverse Fischer distribution
long double fisher_distribution_inv(long double dfn,long double dfd,long
double y);
// Inverse fisher distribution complemented
long double fisher_distribution_cinv(int a,int b,long double y);
//Gamma probability distribution function complemented.
long double gamma_distribution_c(long double a,long double b,long double x);
//Incomplete gamma function.
long double gamma_incomplete (long double a,long double x);
//Incomplete gamma function complemented.
long double gamma_incomplete_c(long double a,long double x);
//Inverse of incomplete gamma integral.
long double gamma_incomplete_cinv (long double a,long double y0);
//Inverse of complemented incomplete gamma integral.
long double gamma_incomplete_cinv (long double a,long double y0);
//Normal distribution function.
long double normal_distribution (long double a);
//Inverse of normal distribution function.
long double normal_distribution_inv (long double a);
//Poisson distribution.
long double poisson_distribution (unsigned int k, long double m);
//Complemented Poisson distribution.
long double poisson_distribution_c(unsigned int k,long double m);
//Inverse Poisson distribution.
long double poisson_distribution_inv(unsigned int k,long double y);
//Digamma (PSI) function
long double digamma(long double);
//Student's t
long double students_t (int df,long double t);
//Inverse of Student's t.
long double students_t_inv (int df,long double p);
//Kolmogorov statistic.
long double kolmogorov ( long double );
//Kolmogorov statistic inverse.
long double kolmogorov_inv (long double p);
//Exact Smirnov statistic
long double smirnov (int n,long double e);
//Inverse Smirnov
long double smirnov_inv(int n,long double);
// median
long double medianl(long double *data,int n);
double median(double *data,int n);
float medianf(float *data,int n);
// geometric mean
long double geometric_meanl(long double *data,int n);
double geometric_mean(double *data,int n);
float geometric_meanf(float *data,int n);
// arithmetic mean
long double arithmetic_meanl(long double *data,int n);
double arithmetic_mean(double *data,int n);
float arithmetic_meanf(float *data,int n);
// harmonic mean
long double harmonic_meanl(long double *data,int n);
double harmonic_mean(double *data,int n);
float harmonic_meanf(float *data,int n);
// variance
long double variancel(long double *data,int n);
double variance(double *data,int n);
float variancef(float *data,int n);
// variance_mle
long double variance_mlel(long double *data,int n);
double variance_mle(double *data,int n);
float variance_mlef(float *data,int n);
// standard deviation
long double standard_deviationl(long double *data,int n);
double standard_deviation_mle(double *data,int n);
float standard_deviation_mlef(float *data,int n);
// root mean square
long double rmsl(long double *data,int n);
double rms(double *data,int n);
float rmsf(float *data,int n);
// central moment
long double central_momentl(long double *data,int n,long double K);
double central_moment(double *data,int n,double K);
float central_momentf(float *data,int n,float K);
// percentile
long double percentilel(long double *data,int n,long double K);
double percentile(double *data,int n,double K);
float percentilef(float *data,int n,float K);
// skewness
long double skewnessl(long double *data,int n);
double skewness(double *data,int n);
float skewnessf(float *data,int n);
// kurtosis
long double kurtosisl(long double *data,int n);
double kurtosis(double *data,int n);
float kurtosisf(float *data,int n);
#endif

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Jun 27 '08 #2
lb*****@gmail.com wrote:
Like this one?

http://commons.apache.org/math/userguide/stat.html

Basically I need the mean, standard deviation and skewness and
preferably a legal hassles free one
Have you tried www.google.com? Just checking...

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jun 27 '08 #3
jacob navia wrote, On 24/04/08 17:02:
lb*****@gmail.com wrote:
> Like this one?

http://commons.apache.org/math/userguide/stat.html

Basically I need the mean, standard deviation and skewness and
preferably a legal hassles free one

Thanks
lbrtchx

The lcc-win compiler system provides a statistical library.
<snip>

There are, however, licensing restrictions. I.e. it cannot be used for
commercial work without paying Jacob. I'm not saying that Jacob is wrong
to charge people for SW, but since the OP wanted "legal hassles free" he
needs to be aware of this.

Another option might be the GNU Scientific Library
http://www.gnu.org/software/gsl/
However, again, the licensing might be an issue since it is GPL rather
than LGPL.

Searching for "C statistics library" (without the quotes) in Google
throws up other options even on the first page of hits.
--
Flash Gordon
Jun 27 '08 #4
On Apr 24, 8:52*am, lbrt...@gmail.com wrote:
*Like this one?

*http://commons.apache.org/math/userguide/stat.html

*Basically I need the mean, standard deviation and skewness and
preferably a legal hassles free one
http://sourceforge.net/search/index....&Search=Search

I have a C++ univarate statistics template I can send you if you want.
Totally free from any encumberances.
Jun 27 '08 #5
lb*****@gmail.com wrote:
>
Like this one?

http://commons.apache.org/math/userguide/stat.html

Basically I need the mean, standard deviation and skewness and
preferably a legal hassles free one.
Those are properties of statistics, and have been in all the
textbooks for nearly 200 years. There are no legal hassles. Try
stating what you want with more precision.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.

** Posted from http://www.teranews.com **
Jun 27 '08 #6
"CBFalconer" wrote:
lb*****@gmail.com wrote:
>>
Like this one?

http://commons.apache.org/math/userguide/stat.html

Basically I need the mean, standard deviation and skewness and
preferably a legal hassles free one.

Those are properties of statistics, and have been in all the
textbooks for nearly 200 years. There are no legal hassles. Try
stating what you want with more precision.
That's what you came up with? After two days? That you don't understand the
question?
Jun 27 '08 #7
osmium wrote:
"CBFalconer" wrote:
>lb*****@gmail.com wrote:
>>>
Like this one?

http://commons.apache.org/math/userguide/stat.html

Basically I need the mean, standard deviation and skewness and
preferably a legal hassles free one.

Those are properties of statistics, and have been in all the
textbooks for nearly 200 years. There are no legal hassles.
Try stating what you want with more precision.

That's what you came up with? After two days? That you don't
understand the question?
You didn't read the date/time on my post. It was about two hours
after the OPs post. And those statistics factors are well known.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
** Posted from http://www.teranews.com **
Jun 27 '08 #8
CBFalconer wrote:
osmium wrote:
>"CBFalconer" wrote:
>>lb*****@gmail.com wrote:
Like this one?

http://commons.apache.org/math/userguide/stat.html

Basically I need the mean, standard deviation and skewness and
preferably a legal hassles free one.
Those are properties of statistics, and have been in all the
textbooks for nearly 200 years. There are no legal hassles.
Try stating what you want with more precision.
That's what you came up with? After two days? That you don't
understand the question?

You didn't read the date/time on my post. It was about two hours
after the OPs post. And those statistics factors are well known.
You may have posted on the 25th, but your iffy news server didn't
deliver the message until today. Your posts often arrive late and in a
clump.

--
Ian Collins.
Jun 27 '08 #9
Ian Collins <ia******@hotmail.comwrites:
CBFalconer wrote:
>osmium wrote:
>>"CBFalconer" wrote:
lb*****@gmail.com wrote:
Like this one?
>
http://commons.apache.org/math/userguide/stat.html
>
Basically I need the mean, standard deviation and skewness and
preferably a legal hassles free one.
Those are properties of statistics, and have been in all the
textbooks for nearly 200 years. There are no legal hassles.
Try stating what you want with more precision.
That's what you came up with? After two days? That you don't
understand the question?

You didn't read the date/time on my post. It was about two hours
after the OPs post. And those statistics factors are well known.
You may have posted on the 25th, but your iffy news server didn't
deliver the message until today. Your posts often arrive late and in a
clump.
And invariably incorrect.
Jun 27 '08 #10
On 27 Apr 2008 at 4:46, Ian Collins wrote:
CBFalconer wrote:
>You didn't read the date/time on my post. It was about two hours
after the OPs post.
You may have posted on the 25th, but your iffy news server didn't
deliver the message until today. Your posts often arrive late and in a
clump.
Yes. Often I see "30 new posts" and think clc must have fallen prey to a
splorge attack like the ones that have hit sci.math recently. But no,
it's even worse than that! It's 30 posts from CBF, mostly on stale
articles, and with a rough breakdown of
15 netnannying posts
10 posts that are completely wrong
5 correct but pointless posts about trivial and irrelevant details

Jun 27 '08 #11
In article <sl*******************@nospam.invalid>,
Antoninus Twink <no****@nospam.invalidwrote:
>On 27 Apr 2008 at 4:46, Ian Collins wrote:
>CBFalconer wrote:
>>You didn't read the date/time on my post. It was about two hours
after the OPs post.
You may have posted on the 25th, but your iffy news server didn't
deliver the message until today. Your posts often arrive late and in a
clump.

Yes. Often I see "30 new posts" and think clc must have fallen prey to a
splorge attack like the ones that have hit sci.math recently. But no,
it's even worse than that! It's 30 posts from CBF, mostly on stale
articles, and with a rough breakdown of
15 netnannying posts
10 posts that are completely wrong
5 correct but pointless posts about trivial and irrelevant details
Indeed. So very true. A nice breakdown of any 30 CBF posts.

Jun 27 '08 #12
ga*****@xmission.xmission.com (Kenny McCormack) writes:
In article <sl*******************@nospam.invalid>,
Antoninus Twink <no****@nospam.invalidwrote:
>>On 27 Apr 2008 at 4:46, Ian Collins wrote:
>>CBFalconer wrote:
You didn't read the date/time on my post. It was about two hours
after the OPs post.

You may have posted on the 25th, but your iffy news server didn't
deliver the message until today. Your posts often arrive late and in a
clump.

Yes. Often I see "30 new posts" and think clc must have fallen prey to a
splorge attack like the ones that have hit sci.math recently. But no,
it's even worse than that! It's 30 posts from CBF, mostly on stale
articles, and with a rough breakdown of
15 netnannying posts
10 posts that are completely wrong
5 correct but pointless posts about trivial and irrelevant details

Indeed. So very true. A nice breakdown of any 30 CBF posts.
The net nannying ones should be further broken down into posts which
break the very rules he professes to admire so much including topical
information in the signature, double signatures, overly long signatures
and advertising his own absurd C libraries and services as a contractor.
Jun 27 '08 #13
On Sun, 27 Apr 2008 10:06:42 +0200 (CEST), Antoninus Twink
<no****@nospam.invalidwrote:
>On 27 Apr 2008 at 4:46, Ian Collins wrote:
>CBFalconer wrote:
>>You didn't read the date/time on my post. It was about two hours
after the OPs post.
You may have posted on the 25th, but your iffy news server didn't
deliver the message until today. Your posts often arrive late and in a
clump.

Yes. Often I see "30 new posts" and think clc must have fallen prey to a
splorge attack like the ones that have hit sci.math recently. But no,
it's even worse than that! It's 30 posts from CBF, mostly on stale
articles, and with a rough breakdown of
15 netnannying posts
10 posts that are completely wrong
5 correct but pointless posts about trivial and irrelevant details
You forgot the 2-3 that pimp his software.

Richard Harter, cr*@tiac.net
http://home.tiac.net/~cri, http://www.varinoma.com
Save the Earth now!!
It's the only planet with chocolate.
Jun 27 '08 #14
Richard Harter wrote:

[ ... ]
Richard Harter, cr*@tiac.net
http://home.tiac.net/~cri, http://www.varinoma.com
Save the Earth now!!
It's the only planet with chocolate.
Wouldn't it be better to include the above in a sig block?

Jun 27 '08 #15
On Sun, 27 Apr 2008 21:13:18 +0530, santosh
<sa*********@gmail.comwrote:
>Richard Harter wrote:

[ ... ]
>Richard Harter, cr*@tiac.net
http://home.tiac.net/~cri, http://www.varinoma.com
Save the Earth now!!
It's the only planet with chocolate.

Wouldn't it be better to include the above in a sig block?
AFAIK it is - Free Agent thinks it is.

Richard Harter, cr*@tiac.net
http://home.tiac.net/~cri, http://www.varinoma.com
Save the Earth now!!
It's the only planet with chocolate.
Jun 27 '08 #16
cr*@tiac.net (Richard Harter) writes:
On Sun, 27 Apr 2008 21:13:18 +0530, santosh
<sa*********@gmail.comwrote:
>>Richard Harter wrote:
>>Richard Harter, cr*@tiac.net
http://home.tiac.net/~cri, http://www.varinoma.com
Save the Earth now!!
It's the only planet with chocolate.

Wouldn't it be better to include the above in a sig block?

AFAIK it is - Free Agent thinks it is.
At least when they get to my news feed, your posts have no sig
delimiter. This is normally a line containing "-- " and nothing
else. There should be one here (after a blank line):

--
Ben.
Jun 27 '08 #17
cr*@tiac.net (Richard Harter) writes:
On Sun, 27 Apr 2008 21:13:18 +0530, santosh
<sa*********@gmail.comwrote:
>>Richard Harter wrote:

[ ... ]
>>Richard Harter, cr*@tiac.net
http://home.tiac.net/~cri, http://www.varinoma.com
Save the Earth now!!
It's the only planet with chocolate.

Wouldn't it be better to include the above in a sig block?

AFAIK it is - Free Agent thinks it is.
I've never used Free Agent, but perhaps you need to include the "-- "
line as part of your signature.

--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 27 '08 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Jan Danielsson | last post by:
Hello all, I wanted to plot some statistics, so I wrote a simple wxPython class to do it. Then I realized that I would like to draw bar graphs, so I added that too. Since I'm a complete...
17
by: Felix | last post by:
Dear Sql Server experts: First off, I am no sql server expert :) A few months ago I put a database into a production environment. Recently, It was brought to my attention that a particular...
5
by: Jesper Jensen | last post by:
Hello group. I have an issue, which has bothered me for a while now: I'm wondering why the column statistics, which SQL Server wants me to create, if I turn off auto-created statistics, are so...
3
by: Metal Dave | last post by:
Hello, A script we run against the database as part of the upgrade of our product is failing with the following message: ALTER TABLE ALTER COLUMN EncodedID failed because STATISTICS hind_61_3...
4
by: tkpmep | last post by:
I use Python to generate a huge amount of data in a .csv file which I then process using Excel. In particular, I use Excel's solver to solve a number of non-linear equation, and then regress the...
1
by: ankit | last post by:
There are various packages availaible for XML processing using python. So which to choose and when. I summarized some of the features, advantages and disadvantages of some packages int the...
17
by: romixnews | last post by:
Hi, I'm facing the problem of analyzing a memory allocation dynamic and object creation dynamics of a very big C++ application with a goal of optimizing its performance and eventually also...
5
by: Allan Ebdrup | last post by:
Hi We have a large class library of different classes, now we are going to implement a lot of usage statistics that we need, stuff like how many times a user has logged in, how many times a...
0
ADezii
by: ADezii | last post by:
In last week's Tip, I showed you how to use the ISAMStats Method of the DBEngine (DAO) to return vital statistics concerning Query executions such as: Disk Reads and Writes, Cache Reads and Writes,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.