Click here to Skip to main content
12,403,130 members (69,641 online)
Click here to Skip to main content
Add your own
alternative version


17 bookmarked

Statistic Class

, 9 Feb 2007 CPOL
Rate this:
Please Sign up or sign in to vote.
This class has some Statistical function such as mean , variance,...


This is a class written in It has 8 Functions

  • Max
  • Min
  • Median
  • Mean
  • Variance
  • Covariance
  • VarCovarMatrix
  • Correlation

How to use it ...

Step 1-Add this class to your project. (Add Existing Items )
Step 2-Create an instance :

dim Ins_name as new statistic

call the functions you need from Ins_name.

Min and Max :

You can calculate the Min (max) of byte,integer or double arrays of one,two or three dimention.

each functions has 9 Overload.

Mean :

you can calculate the mea of byte,integer or double array. BUT have you ever think if you could be able to calculate the mean of several or more arrays at the same time.

I means that you do not need to call the class several times to calculate the mean of them. you can create an jagged array and use it as input so you will find the result as an array!
Example : you want to calculate the mean of to arrays ( array1, array2)

dim jagged_array(1)() as double



dim mean_array() as double=statistic.mean(jagged_array)

dim mean1 as double = mean_array(0)

dim mean2 as double = mean_array(1)

You can do the same for variance.


as you see my English is not very well so please tell me if you had any problem using this class.

Enjoy it. (YA ALI)


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Hossein Narimani Rad
Iran (Islamic Republic of) Iran (Islamic Republic of)
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralSpeed Pin
SteveAbbott10-Feb-07 6:20
memberSteveAbbott10-Feb-07 6:20 
AnswerRe: Speed Pin
hossien narimani11-Feb-07 8:35
memberhossien narimani11-Feb-07 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 9 Feb 2007
Article Copyright 2007 by Hossein Narimani Rad
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid