naturalneighbor

Crates.ionaturalneighbor
lib.rsnaturalneighbor
version1.2.2
sourcesrc
created_at2023-10-20 18:16:09.172664
updated_at2024-01-26 09:07:07.382893
description2D Natural Neighbor Interpolation (NNI) library for Rust.
homepage
repository
max_upload_size
id1009271
size64,649
Teruki TADA (TadaTeruki)

documentation

README

naturalneighbor

2D Natural Neighbor Interpolation (NNI) library for Rust.

The implementation of this library is based on 'A Fast and Accurate Algorithm for Natural Neighbor Interpolation' by G.W. Lucas.

This is a subproject for the fastlem.

Installation

[dependencies]
naturalneighbor = "1.2.2"

Benchmark

Benchmarking is available with criterion.

$ cargo bench

Result

Estimated time per 1 interpolation for 2D NNI with 1000, 10000, and 100000 sites.

CPU: 11th Gen Intel i7-11390H (8) @ 5.000GHz
Version: 1.2.0

N=1000 N=10000 N=100000
Estimated time 617.64 ns 938.76 ns 1.2598 µs

Usage

See the API documentation for details.

There are some examples in the examples directory that are useful for understanding how to use this library.

Note that the computation of this library is much faster for the --release build.

Preview

$ cargo run --example color

color

Dependencies

Contributing

Contributions are welcome.

Feel free to open an issue or pull request if you have any problems or suggestions.

License

MIT

Copyright (c) 2023 Teruki TADA

Commit count: 0

cargo fmt