vector-linspace

Create a vector of linearly spaced numbers

Usage no npm install needed!

<script type="module">
  import vectorLinspace from 'https://cdn.skypack.dev/vector-linspace';
</script>

README

linspace

DEPRECATED: use compute-linspace.

Create a vector of linearly spaced numbers.

Installation

$ npm install vector-linspace

Examples

var linspace = require( 'vector-linspace' );

var vector = linspace( 0, 1, 21 );

Tests

Unit tests use the Mocha test framework with Chai assertions.

Assuming you have installed Mocha, execute the following command in the top-level application directory to run the tests:

$ mocha

All new feature development should have corresponding unit tests to validate correct functionality.

License

MIT license.


Copyright

Copyright © 2014. Athan Reines.