#statistics #kernel #density #estimation #cargo

bin+lib kernel_density

Implementation of kernel density estimation as a Rust library

1 unstable release

Uses old Rust 2015

0.0.1 Jul 17, 2016

#18 in #density

Apache-2.0

31KB
336 lines

Build Status

Implementation of Kernel Density Estimation as a Rust library.

Getting Started

The Kernel Density Estimation library is available as a crate, so it is easy to incorporate into your programs. Add the dependency to your Cargo.toml file.

[dependencies]
kernel_density = "0.0.1"

Information about the latest published crate is available on crates.io.

Developing Kernel Density

Install the Rust development tools on your system if they are not already available. Then build and test the library using:

cargo test

Docker

A Docker container definition is provided with installations of the tools used to develop the software. To use the container, first install Docker if not already available and start a Docker terminal. Then create the container by running the following build at the top level of the repository source tree:

docker build --rm=true -t statistics .

Once built, an interactive shell can be run in the container using:

docker run -it -v "$(pwd):/statistics" --workdir=/statistics statistics /bin/bash

The current working directory from the host machine is available as the current directory in the container so it is possible to build and test the library as described earlier.

cargo test

Publishing on crates.io

Instructions for uploading to the crate repository at crates.io are here. First login to the site using:

cargo login <token>

Token can be found from crates.io/me. To make a release, first clean and build the package:

git stash
cargo clean
cargo package

Examine the built package under target/package/kernel_density-<version>. And when happy to publish:

cargo publish

And check out the new update at crates.io/crates/kernel_density.

License

Copyright [2016] [Daithi O Crualaoich]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependencies

~0.7–1MB
~14K SLoC