Make to_vec
public.
This commit is contained in:
parent
1e90bc2d01
commit
f4a04dfd86
|
@ -1,5 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
## bliss 0.2.4
|
||||
* Make `Analysis::to_vec()` public.
|
||||
|
||||
## bliss 0.2.3
|
||||
|
||||
* Made `NUMBER_FEATURES` public.
|
||||
|
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -75,7 +75,7 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
|
|||
|
||||
[[package]]
|
||||
name = "bliss-audio"
|
||||
version = "0.2.3"
|
||||
version = "0.2.4"
|
||||
dependencies = [
|
||||
"bliss-audio-aubio-rs",
|
||||
"crossbeam",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "bliss-audio"
|
||||
version = "0.2.3"
|
||||
version = "0.2.4"
|
||||
authors = ["Polochon-street <polochonstreet@gmx.fr>"]
|
||||
edition = "2018"
|
||||
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.
|
||||
pub fn to_arr1(&self) -> Array1<f32> {
|
||||
arr1(&self.internal_analysis)
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn to_vec(&self) -> Vec<f32> {
|
||||
/// Return a Vec<f32> representing the analysis' features.
|
||||
///
|
||||
/// 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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user