473,672 Members | 3,354 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2499
lb*****@gmail.c om 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_distributi on(long double a,long double b, long double x);
// Beta distribution inverse
long double beta_distributi on_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(unsign ed int k, unsigned int n, long double p);
//Binomial distribution function complemented.
long double binomial_c(unsi gned int k, unsigned int n, long double p);
//Binomial distribution function inverse
long double binomial_inv(un signed int k, unsigned int n , long double y);
//Negative binomial distribution .
long double binomial_neg_di stribution(unsi gned int k, unsigned int
n,long double p);
//Negative binomial distribution complement.
long double binomial_neg_di stribution_c (unsigned int k, unsigned int
n,long double p);
//Inverse of negative binomial distribution.
long double binomial_neg_di stribution_inv( unsigned int k, unsigned int
n,long double p);
//Chi-squared distribution function.
long double chi_sqr_distrib ution(long double df,long double x);
//Chi-squared distribution function complemented.
long double chi_sqr_distrib ution_c(long double df, long double x);
//Inverse of Chi-squared distribution function complemented.
long double chi_sqr_distrib ution_cinv(long double df,long double p);
// Fisher distribution
long double fisher_distribu tion(unsigned int a, unsigned int b,long
double c);
//Fisher F distribution complemented.
long double fisher_distribu tion_c(unsigned int ia, unsigned int ib,long
double c);
// Inverse Fischer distribution
long double fisher_distribu tion_inv(long double dfn,long double dfd,long
double y);
// Inverse fisher distribution complemented
long double fisher_distribu tion_cinv(int a,int b,long double y);
//Gamma probability distribution function complemented.
long double gamma_distribut ion_c(long double a,long double b,long double x);
//Incomplete gamma function.
long double gamma_incomplet e (long double a,long double x);
//Incomplete gamma function complemented.
long double gamma_incomplet e_c(long double a,long double x);
//Inverse of incomplete gamma integral.
long double gamma_incomplet e_cinv (long double a,long double y0);
//Inverse of complemented incomplete gamma integral.
long double gamma_incomplet e_cinv (long double a,long double y0);
//Normal distribution function.
long double normal_distribu tion (long double a);
//Inverse of normal distribution function.
long double normal_distribu tion_inv (long double a);
//Poisson distribution.
long double poisson_distrib ution (unsigned int k, long double m);
//Complemented Poisson distribution.
long double poisson_distrib ution_c(unsigne d int k,long double m);
//Inverse Poisson distribution.
long double poisson_distrib ution_inv(unsig ned 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_mean l(long double *data,int n);
double arithmetic_mean (double *data,int n);
float arithmetic_mean f(float *data,int n);
// harmonic mean
long double harmonic_meanl( long double *data,int n);
double harmonic_mean(d ouble *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(l ong double *data,int n);
double variance_mle(do uble *data,int n);
float variance_mlef(f loat *data,int n);
// standard deviation
long double standard_deviat ionl(long double *data,int n);
double standard_deviat ion_mle(double *data,int n);
float standard_deviat ion_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(lon g double *data,int n,long double K);
double percentile(doub le *data,int n,double K);
float percentilef(flo at *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.c om 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.c om 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.c om 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.c om 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.c om 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.c om 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.c om 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
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 #10

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

Similar topics

8
5120
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 Python newbie, I haven't done much of it the "Python way", I suspect. So, I'm wondering if someone would like to show me some of the tricks I should have used.
17
14073
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 query that executed quite quickly in our dev environment was painfully slow in production. I analyzed the the plan on the production server (it looked good), and then tried quite a few tips that I'd gleaned from reading newsgroups. Nothing worked....
5
6630
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 important to the optimizer? Example: from Northwind (with auto create stats off), I do the following:
3
5668
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 accesses this column The line that fails is:
4
3902
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 results of hundreds of calls to Solver against a set of known values, enabling me to calibrate my model. This is a pain: i'd much rather perform all the computations in Python and improve on Excels' regression as well. Questions: 1. Is there a...
1
1625
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 following text. Have a look to it. May this get out of the dillema of choice. Here we go: OPTIONS ========= - libxml2
17
5068
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 identifying memory leaks. The application in question is the Mozilla Web Browser. I also have had similar tasks before in the compiler construction area. And it is easy to come up with many more examples, where such kind of statistics can be very...
5
1740
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 message has been read, how many times a ad has been shown and so on. Now I'm wondering what would be a good OO organization of this data, should the statistics be part of the objects they are for, or should statistics be seperate. Perhaps each object...
0
5955
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, and Locks placed and released. As promised, in this week's Tip I'll demonstrate how to accomplish parallel functionality within the context of ADO using the OpenSchema Method of the Connection Object. We indicate to the OpenSchema Method that we...
0
8504
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8419
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8945
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8846
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8643
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6255
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1837
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.