pub fn dst2<T>(
x: &ArrayView2<'_, T>,
dst_type: Option<DSTType>,
norm: Option<&str>,
) -> FFTResult<Array2<f64>>
Expand description
Compute the 2-dimensional discrete sine transform.
§Arguments
x
- Input 2D arraydst_type
- Type of DST to perform (default: Type2)norm
- Normalization mode (None, “ortho”)
§Returns
- The 2D DST of the input array
§Examples
use scirs2_fft::{dst2, DSTType};
use scirs2_core::ndarray::Array2;
// Create a 2x2 array
let signal = Array2::from_shape_vec((2, 2), vec![1.0, 2.0, 3.0, 4.0]).unwrap();
// Compute 2D DST-II
let dst_coeffs = dst2(&signal.view(), Some(DSTType::Type2), Some("ortho")).unwrap();