A Rust crate for building Neutral Landscape Models.
bash
cargo add nlmrs
```rs use nlmrs;
fn main() {
let arr: Vec
The export
module holds a collection of user-friendly functions to export your 2D NLM vector.
```rs use nlmrs::{distancegradient, export::writeto_csv};
fn main() {
let arr: Vec
Running script/viz.py
will read any contents of data/data.csv
and render them as a matplotlib plot.
random(100, 100)
random_element(100, 100, 50000.)
planar_gradient(100, 100, Some(60.))
edge_gradient(100, 100, Some(140.))
distance_gradient(100, 100)
wave_gradient(100, 100, 2.5, Some(90.))
midpoint_displacement(100, 100, 1.)
hill_grow(100, 100, 10000, true)
Contributions, issues and feature requests are welcome.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)