12,403,130 members (69,641 online)
alternative version

24.4K views
17 bookmarked
Posted

# Statistic Class

, 9 Feb 2007 CPOL
 Rate this:
This class has some Statistical function such as mean , variance,...

## 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 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.

## 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.

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)

``` ```

## Share

 Engineer Iran (Islamic Republic of)
No Biography provided

## You may also be interested in...

 First Prev Next
 Speed SteveAbbott10-Feb-07 6:20 SteveAbbott 10-Feb-07 6:20
 Re: Speed hossien narimani11-Feb-07 8:35 hossien narimani 11-Feb-07 8:35
 Last Visit: 31-Dec-99 18:00     Last Update: 27-Jul-16 23:42 Refresh 1