use super::histogram::Histogram;
#[derive(Debug, Clone)]
pub struct Series<T, const WIDTH: usize> {
pub(crate) name: String,
pub(crate) histogram: Histogram<T, WIDTH>,
}
impl<T, const WIDTH: usize> Series<T, WIDTH> {
pub fn new(name: impl ToString, histogram: Histogram<T, WIDTH>) -> Self {
Self {
name: name.to_string(),
histogram,
}
}
}