Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-statistics

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-statistics - npm Package Compare versions

Comparing version 7.8.5 to 7.8.6

2

package.json
{
"name": "simple-statistics",
"version": "7.8.5",
"version": "7.8.6",
"description": "Simple Statistics",

@@ -5,0 +5,0 @@ "author": "Tom MacWright <tom@macwright.com> (https://macwright.com/)",

/**
* https://simplestatistics.org/docs/#addtomean
* https://simple-statistics.github.io/docs/#addtomean
*/

@@ -4,0 +4,0 @@ declare function addToMean(mean: number, n: number, newValue: number): number;

/**
* https://simplestatistics.org/docs/#approx_strict_equal
* https://simple-statistics.github.io/docs/#approx_strict_equal
*/

@@ -4,0 +4,0 @@ declare function approxEqual(

@@ -6,3 +6,3 @@ type Data = object;

/**
* https://simplestatistics.org/docs/#bayesianclassifier
* https://simple-statistics.github.io/docs/#bayesianclassifier
*/

@@ -9,0 +9,0 @@ declare class BayesianClassifier {

/**
* https://simplestatistics.org/docs/#bernoullidistribution
* https://simple-statistics.github.io/docs/#bernoullidistribution
*/

@@ -4,0 +4,0 @@ declare function bernoulliDistribution(p: number): number[];

/**
* https://simplestatistics.org/docs/#binomialdistribution
* https://simple-statistics.github.io/docs/#binomialdistribution
*/

@@ -4,0 +4,0 @@ declare function binomialDistribution(

/**
* https://simplestatistics.org/docs/#bisect
* https://simple-statistics.github.io/docs/#bisect
*/

@@ -4,0 +4,0 @@ declare function bisect(

@@ -16,3 +16,3 @@ export interface DistributionTable {

/**
* https://simplestatistics.org/docs/#chisquareddistributiontable
* https://simple-statistics.github.io/docs/#chisquareddistributiontable
*/

@@ -19,0 +19,0 @@ declare const chiSquaredDistributionTable: {

/**
* https://simplestatistics.org/docs/#chisquaredgoodnessoffit
* https://simple-statistics.github.io/docs/#chisquaredgoodnessoffit
*/

@@ -4,0 +4,0 @@ declare function chiSquaredGoodnessOfFit(

/**
* https://simplestatistics.org/docs/#chunk
* https://simple-statistics.github.io/docs/#chunk
*/

@@ -4,0 +4,0 @@ declare function chunk<T>(x: T[], chunkSize: number): T[][];

/**
* https://simplestatistics.org/docs/#ckmeans
* https://simple-statistics.github.io/docs/#ckmeans
*/

@@ -4,0 +4,0 @@ declare function ckmeans<T extends number[]>(x: T, nClusters: number): T[];

/**
* https://simplestatistics.org/docs/#coefficientofvariation
* https://simple-statistics.github.io/docs/#coefficientofvariation
*/

@@ -4,0 +4,0 @@ declare function coefficientOfVariation(x: number[]): number;

/**
* https://simplestatistics.org/docs/#combinationsreplacement
* https://simple-statistics.github.io/docs/#combinationsreplacement
*/

@@ -4,0 +4,0 @@ declare function combinationsReplacement<T extends any[]>(x: T, k: number): T[];

/**
* https://simplestatistics.org/docs/#combinations
* https://simple-statistics.github.io/docs/#combinations
*/

@@ -4,0 +4,0 @@ declare function combinations<T extends any[]>(x: T, k: number): T[];

/**
* https://simplestatistics.org/docs/#combinemeans
* https://simple-statistics.github.io/docs/#combinemeans
*/

@@ -4,0 +4,0 @@ declare function combineMeans(

/**
* https://simplestatistics.org/docs/#combinevariances
* https://simple-statistics.github.io/docs/#combinevariances
*/

@@ -4,0 +4,0 @@ declare function combineVariances(

/**
* https://simplestatistics.org/docs/#cumulativestdlogisticprobability
* https://simple-statistics.github.io/docs/#cumulativestdlogisticprobability
*/

@@ -4,0 +4,0 @@ declare function cumulativeStdLogisticProbability(x: number): number;

/**
* https://simplestatistics.org/docs/#cumulativestdnormalprobability
* https://simple-statistics.github.io/docs/#cumulativestdnormalprobability
*/

@@ -4,0 +4,0 @@ declare function cumulativeStdNormalProbability(z: number): number;

/**
* https://simplestatistics.org/docs/#epsilon
* https://simple-statistics.github.io/docs/#epsilon
*/

@@ -4,0 +4,0 @@ declare const epsilon: number;

/**
* https://simplestatistics.org/docs/#equalintervalbreaks
* https://simple-statistics.github.io/docs/#equalintervalbreaks
*/

@@ -4,0 +4,0 @@ declare function equalIntervalBreaks(x: number[], nClasses: number): number[];

/**
* https://simplestatistics.org/docs/#errorfunction
* https://simple-statistics.github.io/docs/#errorfunction
*/

@@ -4,0 +4,0 @@ declare function errorFunction(x: number): number;

/**
* https://simplestatistics.org/docs/#extent
* https://simple-statistics.github.io/docs/#extent
*/

@@ -4,0 +4,0 @@ declare function extent(x: number[]): [number, number];

/**
* https://simplestatistics.org/docs/#factorial
* https://simple-statistics.github.io/docs/#factorial
*/

@@ -4,0 +4,0 @@ declare function factorial(n: number): number;

/**
* https://simplestatistics.org/docs/#geometricmean
* https://simple-statistics.github.io/docs/#geometricmean
*/

@@ -4,0 +4,0 @@ declare function geometricMean(x: number[]): number;

/**
* https://simplestatistics.org/docs/#harmonicmean
* https://simple-statistics.github.io/docs/#harmonicmean
*/

@@ -4,0 +4,0 @@ declare function harmonicMean(x: number[]): number;

/**
* https://simplestatistics.org/docs/#interquartilerange
* https://simple-statistics.github.io/docs/#interquartilerange
*/

@@ -4,0 +4,0 @@ declare function interquartileRange(x: number[]): number;

/**
* https://simplestatistics.org/docs/#inverseerrorfunction
* https://simple-statistics.github.io/docs/#inverseerrorfunction
*/

@@ -4,0 +4,0 @@ declare function inverseErrorFunction(x: number): number;

/**
* https://simplestatistics.org/docs/#jenks
* https://simple-statistics.github.io/docs/#jenks
*/

@@ -4,0 +4,0 @@ declare function jenks(data: number[], nClasses: number): number[];

/**
* https://simplestatistics.org/docs/#k_means_cluster
* https://simple-statistics.github.io/docs/#k_means_cluster
*/

@@ -4,0 +4,0 @@ declare function kMeansCluster(

@@ -5,3 +5,3 @@ export type Kernels = "gaussian";

/**
* https://simplestatistics.org/docs/#kde
* https://simple-statistics.github.io/docs/#kde
*/

@@ -8,0 +8,0 @@ declare function kernelDensityEstimation(

/**
* https://simplestatistics.org/docs/#linearregressionline
* https://simple-statistics.github.io/docs/#linearregressionline
*/

@@ -4,0 +4,0 @@ declare function linearRegressionLine(mb: {

/**
* https://simplestatistics.org/docs/#linearregression
* https://simple-statistics.github.io/docs/#linearregression
*/

@@ -4,0 +4,0 @@ declare function linearRegression(data: number[][]): { m: number; b: number };

/**
* https://simplestatistics.org/docs/#logit
* https://simple-statistics.github.io/docs/#logit
*/

@@ -4,0 +4,0 @@ declare function logit(p: number): number;

/**
* https://simplestatistics.org/docs/#maxsorted
* https://simple-statistics.github.io/docs/#maxsorted
*/

@@ -4,0 +4,0 @@ declare function maxSorted(x: number[]): number;

/**
* https://simplestatistics.org/docs/#max
* https://simple-statistics.github.io/docs/#max
*/

@@ -4,0 +4,0 @@ declare function max(x: number[]): number;

/**
* https://simplestatistics.org/docs/#mean
* https://simple-statistics.github.io/docs/#mean
*/

@@ -4,0 +4,0 @@ declare function meanSimple(x: number[]): number;

/**
* https://simplestatistics.org/docs/#mean
* https://simple-statistics.github.io/docs/#mean
*/

@@ -4,0 +4,0 @@ declare function mean(x: number[]): number;

/**
* https://simplestatistics.org/docs/#medianabsolutedeviation
* https://simple-statistics.github.io/docs/#medianabsolutedeviation
*/

@@ -4,0 +4,0 @@ declare function medianAbsoluteDeviation(x: number[]): number;

/**
* https://simplestatistics.org/docs/#mediansorted
* https://simple-statistics.github.io/docs/#mediansorted
*/

@@ -4,0 +4,0 @@ declare function medianSorted(sorted: number[]): number;

/**
* https://simplestatistics.org/docs/#median
* https://simple-statistics.github.io/docs/#median
*/

@@ -4,0 +4,0 @@ declare function median(x: number[]): number;

/**
* https://simplestatistics.org/docs/#minsorted
* https://simple-statistics.github.io/docs/#minsorted
*/

@@ -4,0 +4,0 @@ declare function minSorted(x: number[]): number;

/**
* https://simplestatistics.org/docs/#min
* https://simple-statistics.github.io/docs/#min
*/

@@ -4,0 +4,0 @@ declare function min(x: number[]): number;

/**
* https://simplestatistics.org/docs/#modefast
* https://simple-statistics.github.io/docs/#modefast
*/

@@ -4,0 +4,0 @@ declare function modeFast<T>(x: T[]): T;

/**
* https://simplestatistics.org/docs/#modesorted
* https://simple-statistics.github.io/docs/#modesorted
*/

@@ -4,0 +4,0 @@ declare function modeSorted(sorted: number[]): number;

/**
* https://simplestatistics.org/docs/#mode
* https://simple-statistics.github.io/docs/#mode
*/

@@ -4,0 +4,0 @@ declare function mode(x: number[]): number;

/**
* https://simplestatistics.org/docs/#numericsort
* https://simple-statistics.github.io/docs/#numericsort
*/

@@ -4,0 +4,0 @@ declare function numericSort(x: number[]): number[];

/**
* https://simplestatistics.org/docs/#perceptronmodel
* https://simple-statistics.github.io/docs/#perceptronmodel
*/

@@ -4,0 +4,0 @@ declare class PerceptronModel {

/**
* https://simplestatistics.org/docs/#permutationstest
* https://simple-statistics.github.io/docs/#permutationstest
*/

@@ -4,0 +4,0 @@ declare function permutationTest(

/**
* https://simplestatistics.org/docs/#permutationsheap
* https://simple-statistics.github.io/docs/#permutationsheap
*/

@@ -4,0 +4,0 @@ declare function permutationsHeap<T extends any[]>(elements: T): T[];

/**
* https://simplestatistics.org/docs/#poissondistribution
* https://simple-statistics.github.io/docs/#poissondistribution
*/

@@ -4,0 +4,0 @@ declare function poissonDistribution(lambda: number): number[];

/**
* https://simplestatistics.org/docs/#probit
* https://simple-statistics.github.io/docs/#probit
*/

@@ -4,0 +4,0 @@ declare function probit(p: number): number;

/**
* https://simplestatistics.org/docs/#product
* https://simple-statistics.github.io/docs/#product
*/

@@ -4,0 +4,0 @@ declare function product(x: number[]): number;

/**
* https://simplestatistics.org/docs/#quantileranksorted
* https://simple-statistics.github.io/docs/#quantileranksorted
*/

@@ -4,0 +4,0 @@ declare function quantileRankSorted(x: number[], value: number): number;

/**
* https://simplestatistics.org/docs/#quantilerank
* https://simple-statistics.github.io/docs/#quantilerank
*/

@@ -4,0 +4,0 @@ declare function quantileRank(x: number[], value: number): number;

/**
* https://simplestatistics.org/docs/#quantilesorted
* https://simple-statistics.github.io/docs/#quantilesorted
*/

@@ -4,0 +4,0 @@ declare function quantileSorted(x: number[], p: number): number;

/**
* https://simplestatistics.org/docs/#quantile
* https://simple-statistics.github.io/docs/#quantile
*/

@@ -4,0 +4,0 @@ declare function quantile(x: number[], p: number): number;

/**
* https://simplestatistics.org/docs/#quickselect
* https://simple-statistics.github.io/docs/#quickselect
*/

@@ -4,0 +4,0 @@ declare function quickselect(

/**
* https://simplestatistics.org/docs/#rsquared
* https://simple-statistics.github.io/docs/#rsquared
*/

@@ -4,0 +4,0 @@ declare function rSquared(x: number[][], func: (x: number) => number): number;

/**
* https://simplestatistics.org/docs/#relative_error
* https://simple-statistics.github.io/docs/#relative_error
*/

@@ -4,0 +4,0 @@ declare function relativeError(actual: number, expected: number): number;

/**
* https://simplestatistics.org/docs/#rootmeansquare
* https://simple-statistics.github.io/docs/#rootmeansquare
*/

@@ -4,0 +4,0 @@ declare function rootMeanSquare(x: number[]): number;

/**
* https://simplestatistics.org/docs/#samplecorrelation
* https://simple-statistics.github.io/docs/#samplecorrelation
*/

@@ -4,0 +4,0 @@ declare function sampleCorrelation(x: number[], y: number[]): number;

/**
* https://simplestatistics.org/docs/#samplecovariance
* https://simple-statistics.github.io/docs/#samplecovariance
*/

@@ -4,0 +4,0 @@ declare function sampleCovariance(x: number[], y: number[]): number;

/**
* https://simplestatistics.org/docs/#samplekurtosis
* https://simple-statistics.github.io/docs/#samplekurtosis
*/

@@ -4,0 +4,0 @@ declare function sampleKurtosis(x: number[]): number;

/**
* https://simplestatistics.org/docs/#samplerankcorrelation
* https://simple-statistics.github.io/docs/#samplerankcorrelation
*/

@@ -4,0 +4,0 @@ declare function sampleRankCorrelation(x: number[], y: number[]): number;

/**
* https://simplestatistics.org/docs/#sampleskewness
* https://simple-statistics.github.io/docs/#sampleskewness
*/

@@ -4,0 +4,0 @@ declare function sampleSkewness(x: number[]): number;

/**
* https://simplestatistics.org/docs/#samplestandarddeviation
* https://simple-statistics.github.io/docs/#samplestandarddeviation
*/

@@ -4,0 +4,0 @@ declare function sampleStandardDeviation(x: number[]): number;

/**
* https://simplestatistics.org/docs/#samplevariance
* https://simple-statistics.github.io/docs/#samplevariance
*/

@@ -4,0 +4,0 @@ declare function sampleVariance(x: number[]): number;

/**
* https://simplestatistics.org/docs/#samplewithreplacement
* https://simple-statistics.github.io/docs/#samplewithreplacement
*/

@@ -4,0 +4,0 @@ declare function sampleWithReplacement<T>(

/**
* https://simplestatistics.org/docs/#sample
* https://simple-statistics.github.io/docs/#sample
*/

@@ -4,0 +4,0 @@ declare function sample<T>(x: T[], n: number, randomSource: () => number): T[];

/**
* https://simplestatistics.org/docs/#shuffleinplace
* https://simple-statistics.github.io/docs/#shuffleinplace
*/

@@ -4,0 +4,0 @@ declare function shuffleInPlace<T extends any[]>(

/**
* https://simplestatistics.org/docs/#shuffle
* https://simple-statistics.github.io/docs/#shuffle
*/

@@ -4,0 +4,0 @@ declare function shuffle<T extends any[]>(x: T, randomSource?: () => number): T;

/**
* https://simplestatistics.org/docs/#sign
* https://simple-statistics.github.io/docs/#sign
*/

@@ -4,0 +4,0 @@ declare function sign(x: number): number;

/**
* https://simplestatistics.org/docs/#silhouettemetric
* https://simple-statistics.github.io/docs/#silhouettemetric
*/

@@ -4,0 +4,0 @@ declare function silhouetteMetric(points: number[][], labels: number[]): number;

/**
* https://simplestatistics.org/docs/#silhouette
* https://simple-statistics.github.io/docs/#silhouette
*/

@@ -4,0 +4,0 @@ declare function silhouette(points: number[][], labels: number[]): number[];

/**
* https://simplestatistics.org/docs/#standarddeviation
* https://simple-statistics.github.io/docs/#standarddeviation
*/

@@ -4,0 +4,0 @@ declare function standardDeviation(x: number[]): number;

/**
* https://simplestatistics.org/docs/#standardnormaltable
* https://simple-statistics.github.io/docs/#standardnormaltable
*/

@@ -4,0 +4,0 @@ declare const standardNormalTable: number[];

/**
* https://simplestatistics.org/docs/#subtractfrommean
* https://simple-statistics.github.io/docs/#subtractfrommean
*/

@@ -4,0 +4,0 @@ declare function subtractFromMean(

/**
* https://simplestatistics.org/docs/#sumnthpowerdeviations
* https://simple-statistics.github.io/docs/#sumnthpowerdeviations
*/

@@ -4,0 +4,0 @@ declare function sumNthPowerDeviations(x: number[], n?: number): number;

/**
* https://simplestatistics.org/docs/#sumsimple
* https://simple-statistics.github.io/docs/#sumsimple
*/

@@ -4,0 +4,0 @@ declare function sumSimple(x: number[]): number;

/**
* https://simplestatistics.org/docs/#sum
* https://simple-statistics.github.io/docs/#sum
*/

@@ -4,0 +4,0 @@ declare function sum(x: number[]): number;

/**
* https://simplestatistics.org/docs/#ttesttwosample
* https://simple-statistics.github.io/docs/#ttesttwosample
*/

@@ -4,0 +4,0 @@ declare function tTestTwoSample(

/**
* https://simplestatistics.org/docs/#ttest
* https://simple-statistics.github.io/docs/#ttest
*/

@@ -4,0 +4,0 @@ declare function tTest(x: number[], expectedValue: number): number;

/**
* https://simplestatistics.org/docs/#uniquecountsorted
* https://simple-statistics.github.io/docs/#uniquecountsorted
*/

@@ -4,0 +4,0 @@ declare function uniqueCountSorted(x: any[]): number;

/**
* https://simplestatistics.org/docs/#variance
* https://simple-statistics.github.io/docs/#variance
*/

@@ -4,0 +4,0 @@ declare function variance(x: number[]): number;

/**
* https://simplestatistics.org/docs/#wilcoxonranksum
* https://simple-statistics.github.io/docs/#wilcoxonranksum
*/

@@ -4,0 +4,0 @@ declare function wilcoxonRankSum(sampleX: number[], sampleY: number[]): number;

/**
* https://simplestatistics.org/docs/#zscore
* https://simple-statistics.github.io/docs/#zscore
*/

@@ -4,0 +4,0 @@ declare function zScore(

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc