Skip to content

Commit 2fb3a6f

Browse files
chore: fixs asked in review
1 parent 1bcb889 commit 2fb3a6f

File tree

2 files changed

+4
-13
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/triangular/variance

2 files changed

+4
-13
lines changed

lib/node_modules/@stdlib/stats/base/dists/triangular/variance/include/stdlib/stats/base/dists/triangular/variance.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,6 @@ extern "C" {
2828

2929
/**
3030
* Returns the variance of a triangular distribution.
31-
*
32-
* The variance for a triangular distribution is computed as:
33-
*
34-
* variance = ( ( a*a ) + ( b*b ) + ( c*c ) - ( a*b ) - ( b*c ) - ( a*c ) ) / 18.0
35-
*
36-
* where:
37-
* - a is the minimum value,
38-
* - b is the maximum value, and
39-
* - c is the mode.
4031
*/
4132
double stdlib_base_dists_triangular_variance( const double a, const double b, const double c );
4233

lib/node_modules/@stdlib/stats/base/dists/triangular/variance/src/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
/**
2323
* Returns the variance of a triangular distribution.
2424
*
25-
* @param a minimum support
26-
* @param b maximum support
27-
* @param c mode
28-
* @return variance
25+
* @param a minimum support
26+
* @param b maximum support
27+
* @param c mode
28+
* @return variance
2929
*
3030
* @example
3131
* double y = stdlib_base_dists_triangular_variance( 0.0, 1.0, 0.5 );

0 commit comments

Comments
 (0)