https://github.com/eveningkid/l1-norm
Compute the Manhattan/Taxicab/l1 norm of a vector
https://github.com/eveningkid/l1-norm
Last synced: 3 months ago
JSON representation
Compute the Manhattan/Taxicab/l1 norm of a vector
- Host: GitHub
- URL: https://github.com/eveningkid/l1-norm
- Owner: eveningkid
- Created: 2019-05-15T03:43:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-15T03:43:39.000Z (about 6 years ago)
- Last Synced: 2025-02-03T23:34:11.505Z (4 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# l1 Norm
Implementation of the [l1 norm](https://en.wikipedia.org/wiki/Norm_(mathematics)#Taxicab_norm_or_Manhattan_norm).Compute the Manhattan/Taxicab/l1 norm of a vector.
```bash
npm install l1-norm
yarn add l1-norm
``````js
const l1norm = require('l1-norm');
l1norm([64, 42, 21]);
// 127
```## License
eveningkid, MIT