1.0.5 • Published 1 year ago

@snailcode.net/basic-stat v1.0.5

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
1 year ago

@snailcode-net/basic-stat

An npm package for performing basic statistical analysis.

Descriptive Statistics


  1. Import the Summary class.

import { Descriptive } from "@snailcode.net/basic-stat"; 2. Create a new Summary.

`const grades = [1, 2, 4, 6, 9];`

`const stat = new Descriptive("grades", grades, "sample");`
  1. To access all the descriptive statistics of the dataset, you can access the 'summary' property of the summary.

    stat.summary

    The value property contains the mean, median, mode, max, min, variance, and standard deviation of the dataset.

  2. You can access the different descriptive statistics individually using the following:

* mean: `stat.summary.mean`
* median: `stat.summary.median`
* mode: `stat.summary.mode`
* max: `stat.summary.max`
* min: `stat.summary.min`
* variance: `stat.summary.variance`
* standard deviation: `stat.summary.standardDeviation`

Inferential Statistics


in-progress

acceptsacornacorn-import-assertionsacorn-walkajvajv-formatsajv-keywordsansi-escapesansi-html-communityansi-regexansi-stylesanymatchargargparsearray-flattenbabel-jestbabel-plugin-istanbulbabel-plugin-jest-hoistbabel-preset-current-node-syntaxbabel-preset-jestbalanced-matchbatchbinary-extensionsbody-parserbonjour-servicebrace-expansionbracesbrowserslistbs-loggerbserbuffer-frombytescall-bindcallsitescamelcasecaniuse-litechalkchar-regexchokidarchrome-trace-eventci-infocjs-module-lexercliuiclone-deepcocollect-v8-coveragecolor-convertcolor-namecolorettecommandercompressiblecompressionconcat-mapconnect-history-api-fallbackcontent-dispositioncontent-typeconvert-source-mapcookiecookie-signaturecore-util-iscreate-requirecross-spawndebugdedentdeepmergedefault-gatewaydefine-lazy-propdepddestroydetect-newlinedetect-nodediffdiff-sequencesdns-equaldns-packetdynamic-dedupeee-firstelectron-to-chromiumemitteryemoji-regexencodeurlenhanced-resolveenvinfoerror-exes-module-lexerescaladeescape-htmlescape-string-regexpeslint-scopeesprimaesrecurseestraverseetageventemitter3eventsexecaexitexpectexpressfast-deep-equalfast-json-stable-stringifyfastest-levenshteinfaye-websocketfb-watchmanfill-rangefinalhandlerfind-upfollow-redirectsforwardedfreshfs-monkeyfs.realpathfunction-bindgensyncget-caller-fileget-intrinsicget-package-typeget-streamglobglob-parentglob-to-regexpglobalsgraceful-fshandle-thinghashas-flaghas-symbolshpack.jshtml-entitieshtml-escaperhttp-deceiverhttp-errorshttp-parser-jshttp-proxyhttp-proxy-middlewarehuman-signalsiconv-liteimport-localimurmurhashinflightinheritsinterpretipaddr.jsis-arrayishis-binary-pathis-core-moduleis-dockeris-extglobis-fullwidth-code-pointis-generator-fnis-globis-numberis-plain-objis-plain-objectis-streamis-wslisarrayisexeisobjectistanbul-lib-coverageistanbul-lib-instrumentistanbul-lib-reportistanbul-lib-source-mapsistanbul-reportsjest-changed-filesjest-circusjest-clijest-configjest-diffjest-docblockjest-eachjest-environment-nodejest-get-typejest-haste-mapjest-leak-detectorjest-matcher-utilsjest-message-utiljest-mockjest-pnp-resolverjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjest-runtimejest-snapshotjest-utiljest-validatejest-watcherjest-workerjs-tokensjs-yamljsescjson-parse-even-better-errorsjson-schema-traversejson5kind-ofkleurlaunch-editorlevenlines-and-columnsloader-runnerlocate-pathlodash.memoizelru-cachemake-dirmake-errormakeerrormedia-typermemfsmerge-descriptorsmerge-streammethodsmicromatchmimemime-dbmime-typesmimic-fnminimalistic-assertminimatchminimistmkdirpmsmulticast-dnsnatural-comparenegotiatorneo-asyncnode-forgenode-int64node-releasesnormalize-pathnpm-run-pathobject-inspectobufon-finishedon-headersonceonetimeopenp-limitp-locatep-retryp-tryparse-jsonparseurlpath-existspath-is-absolutepath-keypath-parsepath-to-regexppicocolorspicomatchpiratespkg-dirpretty-formatprocess-nextick-argspromptsproxy-addrpunycodepure-randqsrandombytesrange-parserraw-bodyreact-isreadable-streamreaddirprechoirrequire-directoryrequire-from-stringrequires-portresolveresolve-cwdresolve-fromresolve.exportsretryrimrafsafe-buffersafer-bufferschema-utilsselect-hoseselfsignedsemversendserialize-javascriptserve-indexserve-staticsetprototypeofshallow-cloneshebang-commandshebang-regexshell-quoteside-channelsignal-exitsisteransislashsockjssource-mapsource-map-supportspdyspdy-transportsprintf-jsstack-utilsstatusesstring-lengthstring-widthstring_decoderstrip-ansistrip-bomstrip-final-newlinestrip-json-commentssupports-colorsupports-preserve-symlinks-flagtapableterserterser-webpack-plugintest-excludethunkytmplto-fast-propertiesto-regex-rangetoidentifiertree-killts-nodetsconfigtype-detecttype-festtype-isunpipeupdate-browserslist-dburi-jsutil-deprecateutils-mergeuuidv8-compile-cache-libv8-to-istanbulvarywalkerwatchpackwbufwebpack-dev-middlewarewebpack-mergewebpack-sourceswebsocket-driverwebsocket-extensionswhichwildcardwrap-ansiwrappywrite-file-atomicwsxtendy18nyallistyargsyargs-parserynyocto-queue
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago