pub fn reconstruct_into_with_projection<T: FloatExt, S: Data<Elem = T>, D: Dimension>(
projected: ArrayBase<S, D>,
reconstructed: ArrayViewMut<'_, T, D>,
seed: u64,
projection: &RandomProjectionKind,
) -> Result<(), RandomProjectionCodecError>Expand description
Applies the (approximate) inverse of random projection to the projected
array to reconstruct the input data with the given seed and projection
kind and outputs into the reconstructed array.
§Errors
Errors with
RandomProjectionCodecError::NonMatrixDataif theprojectedandreconstructedarrays are not two-dimensional matricesRandomProjectionCodecError::NumberOfSamplesMismatchif the number of samples$N$of theprojectedarray don’t match the number of samples of thereconstructedarrayRandomProjectionCodecError::ProjectedArrayZeroComponentsif theprojectedarray is of shape$(N, 0)$RandomProjectionCodecError::CorruptedNumberOfComponentsif theprojectedarray’s dimensionality metadata is corruptedRandomProjectionCodecError::NumberOfFeaturesMismatchif thereconstructedarray’s dimensionality$D$does not match theprojectedarray’s dimensionality metadataRandomProjectionCodecError::NonFiniteDataif theprojectedarray or the reconstructed output contains non-finite data