Skip to content

Commit

Permalink
fix: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Patro committed Aug 31, 2024
1 parent 969edac commit 9f4b15a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
20 changes: 5 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,15 @@ license-file = "LICENSE"
readme = "README.md"
repository = "https://github.com/COMBINE-lab/kde-rs"
homepage = "https://COMBINE-lab.github.io/kde-rs"
include = [
"/src/*.rs",
"/Cargo.toml",
"/README.md",
"/LICENSE"
]
keywords = [
"kernel-density",
"density-estimation",
"kde",
"statistics"
]
include = ["/src/*.rs", "/Cargo.toml", "/README.md", "/LICENSE"]
keywords = ["kernel-density", "density-estimation", "kde", "statistics"]
categories = ["command-line-utilities", "science"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
ndarray = "0.15"
ndarray-stats = "0.5.1"
ndarray = "0.15.6"
ndarray-stats = "0.6.0"
num = "0.4"
anyhow = "1.0.86"
itertools = "0.13.0"
Expand All @@ -39,4 +29,4 @@ pyo3 = "0.21.2"
numpy = "0.21.0"
rand = "0.8.5"
kendalls = "0.2.2"
ordered-float = "4.2.1"
ordered-float = "4.2.2"
8 changes: 5 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
//!
//! # Example
//! ```
//! use kders::kde;
//! use kders::{kde, kde::GridDimensions};
//! use rand::prelude::*;
//! use rand::{distributions::Uniform, Rng};
//!
//! // create a grid on the range [0, 100]x[0, 100] with bins
//! // of width 5 and a kernel bandwidth of 2.
//! let mut rng = rand::thread_rng();
//! let die = Uniform::from(10.0..100.);
//! let mut g = kde::KDEGrid(GridDimension{ 100, 100 }, 5, Some(2.0));
//! let mut g = kde::KDEGrid::new(GridDimensions{ width: 100, height: 100 }, 5, Some(2.0));
//!
//! // add 100 random observations
//! for _i in 0..100 {
Expand All @@ -21,7 +23,7 @@
//! }
//! // obtain the density grid on which we'll evaluate our queries
//!
//! let density = g.get_kde()?;
//! let density = g.get_kde().unwrap();
//! // lookup the density at some points
//! let a = density[(10_usize, 10_usize)];
//! let b = density[(10_usize, 25_usize)];
Expand Down

0 comments on commit 9f4b15a

Please sign in to comment.