/// Returns a complex-valued frequency response, H(f), of the input series to the output series.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct Nyquist {
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::NumericSeries>,
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "output")]
    output: Box<super::NumericSeries>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::StftOptions>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "stftOptions", skip_serializing_if = "Option::is_none", default)]
    stft_options: Option<Box<super::StftOptions>>,
}
impl Nyquist {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(input: super::NumericSeries, output: super::NumericSeries) -> Self {
        Self::builder().input(input).output(output).build()
    }
    #[inline]
    pub fn input(&self) -> &super::NumericSeries {
        &*self.input
    }
    #[inline]
    pub fn output(&self) -> &super::NumericSeries {
        &*self.output
    }
    #[inline]
    pub fn stft_options(&self) -> Option<&super::StftOptions> {
        self.stft_options.as_ref().map(|o| &**o)
    }
}
