Login
Sign Up
Home
Program
Project
My Zone
Support
Show Code
Browse Program
Search Program
Harmonic Mean Calculation
Input Variables
Output Variables
Program Code
Description
Variable Name *
(dynamic type)
*
!
UP
Down
Delete
Default Value *
*
Description *
*
Multi Lines
Variable Name *
(dynamic type)
*
UP
Down
Delete
Description *
*
Input Variables List
Output Variables List
Source Code
double temp=0; foreach(var a in dim) { temp=temp+1.0/a; } mean=dim.Length/temp;
Subject
Description
Harmonic mean is used to calculate the average of a set of numbers. Here the number of elements will be averaged and divided by the sum of the reciprocals of the elements. The Harmonic mean is always the lowest mean.
Formula :
Harmonic Mean = N/(1/a
1
+1/a
2
+1/a
3
+1/a
4
+.......+1/a
N
)
where
X = Individual score
N = Sample size (Number of scores)
Category
General
Created By
tech
Created Date
11/26/2010
Last Modify Date
11/26/2010
Calculation Count
4
Version
1.00
Positive
0
Neutral
0
Negative
0
Related Program ID
24 , 25 , 26 , 27 , 29
Copyright ©2009-2010 CUI WEI. All Rights Reserved.