@taranti/harmonic-mean
v0.0.6
Published
Taranti Harmonic Mean is a Javascript/Typescript library for harmonic mean computation.
Downloads
86
Maintainers
Readme
Taranti Harmonic Mean
Taranti Harmonic Mean is a Javascript/Typescript library for harmonic mean computation.
For more information about how Harmonic Mean is calculated, see Wikipedia.
Installation
Use your favorite the package manager to install harmonic-mean.
npm
npm install @taranti/harmonic-mean
yarn
yarn add @taranti/harmonic-mean
Usage
Node
import { harmonicMean } from '@taranti/harmonic-mean';
const result = harmonicMean([100, 200, 300, 400]);
console.log(result); // 192
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.