Make to_vec
public.
This commit is contained in:
parent
1e90bc2d01
commit
f4a04dfd86
4 changed files with 11 additions and 5 deletions
|
@ -1,5 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## bliss 0.2.4
|
||||||
|
* Make `Analysis::to_vec()` public.
|
||||||
|
|
||||||
## bliss 0.2.3
|
## bliss 0.2.3
|
||||||
|
|
||||||
* Made `NUMBER_FEATURES` public.
|
* Made `NUMBER_FEATURES` public.
|
||||||
|
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -75,7 +75,7 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bliss-audio"
|
name = "bliss-audio"
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bliss-audio-aubio-rs",
|
"bliss-audio-aubio-rs",
|
||||||
"crossbeam",
|
"crossbeam",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "bliss-audio"
|
name = "bliss-audio"
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
authors = ["Polochon-street <polochonstreet@gmx.fr>"]
|
authors = ["Polochon-street <polochonstreet@gmx.fr>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|
|
@ -156,15 +156,18 @@ impl Analysis {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return an ndarray `arr1`.
|
/// Return an ndarray `Array1` representing the analysis' features.
|
||||||
///
|
///
|
||||||
/// Particularly useful if you want to make a custom distance metric.
|
/// Particularly useful if you want to make a custom distance metric.
|
||||||
pub fn to_arr1(&self) -> Array1<f32> {
|
pub fn to_arr1(&self) -> Array1<f32> {
|
||||||
arr1(&self.internal_analysis)
|
arr1(&self.internal_analysis)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
/// Return a Vec<f32> representing the analysis' features.
|
||||||
pub(crate) fn to_vec(&self) -> Vec<f32> {
|
///
|
||||||
|
/// Particularly useful if you want iterate through the values to store
|
||||||
|
/// them somewhere.
|
||||||
|
pub fn to_vec(&self) -> Vec<f32> {
|
||||||
self.internal_analysis.to_vec()
|
self.internal_analysis.to_vec()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue