Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f86f28
commit 688538b
Showing
74 changed files
with
574 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ node_modules | |
docs/public/ | ||
.nyc_output | ||
dist | ||
test/types.js | ||
types.js | ||
*.types.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#cumulativestdnormalprobability | ||
*/ | ||
declare function cumulativeStdNormalProbability(z: number): number | ||
|
||
export default cumulativeStdNormalProbability; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#epsilon | ||
*/ | ||
declare const epsilon: number; | ||
|
||
export default epsilon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#equalintervalbreaks | ||
*/ | ||
declare function equalIntervalBreaks( | ||
x: number[], | ||
nClasses: number | ||
): number[] | ||
|
||
export default equalIntervalBreaks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#errorfunction | ||
*/ | ||
declare function errorFunction( | ||
x: number | ||
): number | ||
|
||
export default errorFunction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#factorial | ||
*/ | ||
declare function factorial(n: number): number | ||
|
||
export default factorial; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#interquartilerange | ||
*/ | ||
declare function interquartileRange( | ||
x: number[] | ||
): number | ||
|
||
export default interquartileRange; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#inverseerrorfunction | ||
*/ | ||
declare function inverseErrorFunction( | ||
x: number | ||
): number | ||
|
||
export default inverseErrorFunction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export type Kernels = 'gaussian' | ||
export type BandwidthMethods = 'nrd' | ||
|
||
/** | ||
* https://simplestatistics.org/docs/#kde | ||
*/ | ||
declare function kernelDensityEstimation( | ||
X: number[], | ||
kernel?: Kernels | ((u: number) => number), | ||
bandwidthMethod?: BandwidthMethods | number | ||
): (x: number) => number; | ||
|
||
export default kernelDensityEstimation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#linearregression | ||
*/ | ||
declare function linearRegression( | ||
data: number[][] | ||
): { m: number, b: number } | ||
|
||
export default linearRegression; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#linearregressionline | ||
*/ | ||
declare function linearRegressionLine( | ||
mb: {b: number, m: number} | ||
): (x: number) => number; | ||
|
||
export default linearRegressionLine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#max | ||
*/ | ||
declare function max( | ||
x: number[] | ||
): number | ||
|
||
export default max; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#maxsorted | ||
*/ | ||
declare function maxSorted( | ||
x: number[] | ||
): number | ||
|
||
export default maxSorted; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#medianabsolutedeviation | ||
*/ | ||
declare function medianAbsoluteDeviation( | ||
x: number[] | ||
): number | ||
|
||
export default medianAbsoluteDeviation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#min | ||
*/ | ||
declare function min( | ||
x: number[] | ||
): number | ||
|
||
export default min; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#minsorted | ||
*/ | ||
declare function minSorted( | ||
x: number[] | ||
): number | ||
|
||
export default minSorted; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#mode | ||
*/ | ||
declare function mode( | ||
x: number[] | ||
): number | ||
|
||
export default mode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#modefast | ||
*/ | ||
declare function modeFast<T extends any>( | ||
x: T[] | ||
): T | ||
|
||
export default modeFast; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#modesorted | ||
*/ | ||
declare function modeSorted( | ||
sorted: number[] | ||
): number | ||
|
||
export default modeSorted; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://simplestatistics.org/docs/#numericsort | ||
*/ | ||
declare function numericSort( | ||
x: number[] | ||
): number[] | ||
|
||
export default numericSort; |
Oops, something went wrong.