Click here to Skip to main content
Click here to Skip to main content

Statistic Class

By , 9 Feb 2007
Rate this:
Please Sign up or sign in to vote.

Introduction

This is a class written in vb.net. 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

jagged_array(0)()=array1

jagged_array(1)()=array2

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.

Please...

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)


License

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
Engineer
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
No Biography provided

Comments and Discussions

 
GeneralSpeed PinmemberSteveAbbott10-Feb-07 6:20 
AnswerRe: Speed Pinmemberhossien narimani11-Feb-07 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web04 | 2.8.140415.2 | Last Updated 9 Feb 2007
Article Copyright 2007 by Hossein Narimani Rad
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid