patgen

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package patgen contains functions that generate patterns, typically based on various constrained-forms of random patterns

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PermutedBinary

func PermutedBinary(tsr etensor.Tensor, nOn int, onVal, offVal float64)

PermutedBinary sets the given tensor to contain nOn onVal values and the remainder are offVal values, using a permuted order of tensor elements (i.e., randomly shuffled or permuted).

func PermutedBinaryRows

func PermutedBinaryRows(tsr etensor.Tensor, nOn int, onVal, offVal float64)

PermutedBinaryRows treats the tensor as a column of rows as in a etable.Table and sets each row to contain nOn onVal values and the remainder are offVal values, using a permuted order of tensor elements (i.e., randomly shuffled or permuted).

Types

This section is empty.

Jump to

Keyboard shortcuts

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