simplenoise

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRandomNoise

func AddRandomNoise(frequency float64, maxSize int, reader *bufio.Reader, writer *bufio.Writer) error

AddRandomNoise inserts invisible Unicode characters between runes read from reader and writes the result to writer. frequency controls the per-slot probability of inserting a noise character: values in [0.0, 1.0] behave as a probability (0.0 = no noise, 1.0 = noise on every slot). Values above 1.0 guarantee insertion on every slot; values below 0.0 suppress all noise. maxSize is the number of noise-insertion slots between consecutive runes.

func DeNoise

func DeNoise(reader io.Reader, writer io.Writer) error

func DeNoiseAndWriteNoise

func DeNoiseAndWriteNoise(reader io.Reader, writer io.Writer, noiseWriter io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址