473,394 Members | 1,658 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,394 software developers and data experts.

Simple C Statistics

Hi,

I wonder if there is a simple library or set of functions for basic
statistical functions, like what may be on a pocket calculator, without
getting into linking into the language runtimes of the S or R
languages.

For example I just want mean, median, mode, variance, and stuff, and
then the stuff that follows from that. Maybe, something midrange
between (x+y) / 2 and SAS/Spss/... statlib? libstat? stat lib stat,
stat, lib?

Actually I just want to look at it, not probably actually use it, but I
might implement some of its notions after seeing it, especially if
they're imperative instead of functional.

Actually this is just a troll and off-topic for comp.lang.c. While
that is so, I guess I could ask on sci.stat.math, sincerely.

I'll tell you why, I'm trying to analyze digital data with noise in it,
but I just want to flip to correctness about 1/100 of the bad bits, not
analyze its entropy, because there's not a carrier signal, and I'm
ignorant about signal processing. It's not even that hard a problem,
it's mostly elastic knapsack, and the weather.

Anyways I'm interested in seeing some examples of C implementations of
statistical methods. I hope you might be able to refer me to some.
Ah... now I have typed "statistics" into a search engine for
comp.lang.c.

Thank you,

Ross F.

--
"I see that Ross has succeeded in altering
the language of sci.math.
It's enough to make one weep." - R. Poe

Nov 14 '05 #1
2 3039
Ross A. Finlayson wrote:
Hi,

I wonder if there is a simple library or set of functions for basic
statistical functions, like what may be on a pocket calculator, without getting into linking into the language runtimes of the S or R
languages.


The GNU Scientific Library has C code for statistics, see
http://www.gnu.org/software/gsl/manual/gsl-ref_toc.html , as does the
commercial Numerical Recipes in C, see http://www.nr.com . Gretl at
http://gretl.sourceforge.net/ is an open source statistical package
written in C . Statcodes at http://www.astro.psu.edu/statcodes/ has
links to public domain Fortran and C code for statistics.

Nov 14 '05 #2
be*******@aol.com wrote:
Ross A. Finlayson wrote:
Hi,

I wonder if there is a simple library or set of functions for basic
statistical functions, like what may be on a pocket calculator,

without
getting into linking into the language runtimes of the S or R
languages.


The GNU Scientific Library has C code for statistics, see
http://www.gnu.org/software/gsl/manual/gsl-ref_toc.html , as does the
commercial Numerical Recipes in C, see http://www.nr.com . Gretl at
http://gretl.sourceforge.net/ is an open source statistical package
written in C . Statcodes at http://www.astro.psu.edu/statcodes/ has
links to public domain Fortran and C code for statistics.


Hi Beliavsky,

Thank you. That is mind-boggling.

Basically I figure there is a sample, the sample space, the population,
which might be the same thing as the sample space, the probability of a
sample being selected at "random" for various distributions of metrics
of the samples of the population, which might be unknown or
parameterized as opposed to knowing every element of the sample space
in advance in which case it is fixed, the probability, P, of the binary
predicate, into fuzzy and multivalent metrical predicates, these are
words I string together without qualification.

That's a problem in "statistics", those web pages appear immaculately
respectable, but the abuse in statistics is of the metrics and sample
spaces from the actual population.

typedef void* sample_t;

I'm way back on regression, ANOVA, ANCOVA, MANOVA, MANCOVA,
curve-fitting, best-guess estimates for algorithm selection on
instrumented algorithm conditions and contraints, and other nonsense
drooled onto the keyboard, I only had three or four years of college
stat.

That's about statistics, about mathematics and logic I'm an absolutist.

I think the Bayesian methods are very useful for decision making based
on essentially neural networks, as neural networks are modelled in some
sense Bayesianly.

The neural net (keywords forward, backward, and mixed mode propagation,
transfer and decision function, Kohenen, Hopfield, Markov, binary and
analog weights, graph, network and circuit theories, which are the same
thing) is also a very useful tool, and, the implementations are not
necessarily minimal but they are not necessarily massive.

So, my next question is "what C libraries are available for portable
neural net implementations", and an answer may well be "go find it
yourself."

http://www.google.com/search?q=Bayesianly+neural

That is mildly disturbing.

Warm regards,

Ross F.

Nov 14 '05 #3

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

Similar topics

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...
2
by: Lyn Duong | last post by:
Hi, I have a job that performs a runstats on tables in my database (db2 V8 on AIX) and the syntax is db2 runstats on table schema.tabname with distribution and detailed indexes all. when I...
3
by: Fan Ruo Xin | last post by:
I ran the runstats and try to collect sub-element statistics, but for some reason, the value of that two fields in syscat.columns is always -1. Does anyone have any idea?
1
by: Chris Weston | last post by:
Hi. I have automatic statistic update turned on for all my databases. Is this an overhead I can do without? Could I update them overnight when the database is hardly in use? Thanks --...
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...
2
by: Quasar | last post by:
Hi everybody! I''ve created a script that enable the statistics for a specific DB: #!/bin/sh if ; then echo Enabling monitoring switches for ${1} db2 connect to ${1} db2 update monitor...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...
0
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,...
0
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...

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.