Source code for pyhdc.components.thinning

#!/usr/bin/env python
"""Binding operations for hypervectors."""

import numpy as np

# Import from submodules
from pyhdc.components.thinning.random import Random, SegmentedRandom
from pyhdc.components.thinning.sumset import SegmentedSumset, Sumset


[docs] def NoThin(hypervector: np.ndarray) -> np.ndarray: return hypervector
# Define what gets exported with "from pyhdc.components.thinning import *" __all__ = [ "NoThin", "Random", "SegmentedRandom", "Sumset", "SegmentedSumset", ]