pynumpy

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvolveSameBox64

func ConvolveSameBox64(a []float64) ([]float64, error)

Result of np.convolve(a, np.ones(64) / 64.0, mode="same"), the longer input setting the length

func Linspace

func Linspace(start, stop float64, num int, endpoint bool) ([]float64, error)

Evenly spaced float64 samples computed step by step like numpy.linspace, the endpoint pinned to stop

func Percentile

func Percentile(values []float64, q float64) float64

Percentile with numpy's default linear method, interpolating from the upper neighbour past the midpoint

func RMSInt16

func RMSInt16(data []int16) float64

Root mean square of int16 samples as numpy computes sqrt(mean(x.astype(float64) ** 2)) with pairwise summation

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator draws variates in the order numpy.random.Generator draws them from its PCG64

func DefaultRNG

func DefaultRNG(seed uint64) *Generator

Generator numpy.random.default_rng returns for a non negative integer seed

func (*Generator) StandardNormal

func (g *Generator) StandardNormal(size int) ([]float64, error)

Float64 standard normal samples as Generator.standard_normal(size) draws them, negative sizes raising ValueError

type ValueError

type ValueError struct{ Msg string }

ValueError is the ValueError numpy raises for a negative sample count

func (*ValueError) Error

func (e *ValueError) Error() string

Jump to

Keyboard shortcuts

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