Socket
Socket
Sign inDemoInstall

@stdlib/stats-base-dists-t

Package Overview
Dependencies
212
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @stdlib/stats-base-dists-t

Student's t distribution.


Version published
Weekly downloads
155
decreased by-8.28%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

Student's T

NPM version Build Status Coverage Status dependencies

Student's t distribution.

Installation

npm install @stdlib/stats-base-dists-t

Usage

var t = require( '@stdlib/stats-base-dists-t' );
t

Student's t distribution.

var dist = t;
// returns {...}

The namespace contains the following distribution functions:

  • cdf( x, v ): Student's t distribution cumulative distribution function (CDF).
  • logcdf( x, v ): evaluate the natural logarithm of the cumulative distribution function (CDF) for a Student's t distribution.
  • logpdf( x, v ): evaluate the natural logarithm of the probability density function (PDF) for a Student's t distribution.
  • pdf( x, v ): Student's t distribution probability density function (PDF).
  • quantile( p, v ): Student's t distribution quantile function.

The namespace contains the following functions for calculating distribution properties:

The namespace contains a constructor function for creating a Student's t distribution object.

  • T( [v] ): Student's t distribution constructor.
var T = require( '@stdlib/stats-base-dists-t' ).T;

var dist = new T( 2.0 );

var y = dist.cdf( 0.5 );
// returns ~0.667

Examples

var objectKeys = require( '@stdlib/utils-keys' );
var t = require( '@stdlib/stats-base-dists-t' );

console.log( objectKeys( t ) );

Notice

This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.

For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.


License

See LICENSE.

Copyright © 2016-2021. The Stdlib Authors.

Keywords

FAQs

Last updated on 15 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc