pub fn reconstruct_with_projection<T: FloatExt, S: Data<Elem = T>, D: Dimension>(
projected: ArrayBase<S, D>,
seed: u64,
projection: &RandomProjectionKind,
) -> Result<Array<T, Ix2>, RandomProjectionCodecError>
Expand description
Applies the (approximate) inverse of random projection to the projected
array.
The input data is reconstructed with the given seed
and projection
kind and returns the resulting reconstructed array.
§Errors
Errors with
RandomProjectionCodecError::NonMatrixData
if theprojected
array is not a two-dimensional matrixRandomProjectionCodecError::ProjectedArrayZeroComponents
if theprojected
array is of shape(n, 0)
RandomProjectionCodecError::CorruptedNumberOfComponents
if theprojected
array’s dimensionality metadata is corruptedRandomProjectionCodecError::NonFiniteData
if theprojected
array or the reconstructed output contains non-finite data