I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL
COST (GBP)
this unit 0.28
sub units 0.00
+
0

variance

Evaluates the variance of the Arcsin distribution PDF.
Controller: CodeCogs

Interface

C++
Excel

Variance

 
doublevariancedoublea )[inline]
This function evaluates the variance of the Arcsin distribution PDF with given argument, defined by

In the example that follows, the variance is evaluated using values of the parameter from 0.1 up to 0.8 with a step equal to 0.1. The maximum number of precision digits, implicitly set to 17, may be changed through the <em> PRECISION </em> define.

Example 1

#include <codecogs/stats/dists/continuous/arcsin/variance.h>
#include <iostream>
#include <iomanip>
 
#define PRECISION 17
 
int main()
{
  std::cout << "The variance of the Arcsin distribution PDF with";
  std::cout << std::endl;
  std::cout << "a = {0.1, 0.2, ... , 0.7, 0.8} is" << std::endl;
  std::cout << std::endl;
  for (double a = 0.1; a < 0.81; a += 0.1)
  {
    std::cout << std::setprecision(1);
    std::cout << "a = " << std::setw(3) << a << " : ";
    std::cout << std::setprecision(PRECISION);
    std::cout << Stats::Dists::Continuous::Arcsin::variance(a);
    std::cout << std::endl;
  }
  return 0;
}

Output

The variance of the Arcsin distribution PDF with
a = {0.1, 0.2, ... , 0.7, 0.8} is
 
a = 0.1 : 0.005000000000000001
a = 0.2 : 0.020000000000000004
a = 0.3 : 0.045000000000000012
a = 0.4 : 0.080000000000000016
a = 0.5 : 0.125
a = 0.6 : 0.17999999999999999
a = 0.7 : 0.24499999999999997
a = 0.8 : 0.31999999999999995

References

John Burkardt's library of statistical C++ routines, http://www.csit.fsu.edu/~burkardt/cpp_src/prob/prob.html

Parameters

athe parameter of the PDF (must be stricly positive)

Returns

the variance of the Arcsin distribution PDF

Authors

Lucian Bentea (September 2005)
Source Code

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.