Versions in this module Expand all Collapse all v0 v0.2.0 Aug 30, 2026 Changes in this version + func AlphaToLineWidth(alpha float64) float64 + func ApplyCols(matrix DenseMatrix, operation func([]float64) (float64, error)) ([]float64, error) + func ApplyRows(matrix DenseMatrix, operation func([]float64) (float64, error)) ([]float64, error) + func ApplyWindow(values []float64, kind string, dwellTime, parameter float64) ([]float64, error) + func AsymmetricBaseline(y []float64, lambda, p, epsilon float64, maxIterations int) ([]float64, error) + func BaselineCorrect(y []float64, lambda, p, epsilon float64, maxIterations int) ([]float64, error) + func BinMean(values []float64, width int) ([]float64, error) + func CalibrateAxis(ppm []float64, observed, target float64) ([]float64, error) + func DecodeBinary(data []byte, kind, endian string) (any, error) + func FilePath(parts ...string) string + func Gauss(x, center, width, asymmetry float64) float64 + func GrepIndices(values []string, pattern string, ignoreCase bool) ([]int, error) + func Grepl(values []string, pattern string, ignoreCase bool) ([]bool, error) + func IntegrateTrapezoid(x, y []float64) (float64, error) + func IsWholeNumber(value, tolerance float64) bool + func LineWidthToAlpha(lineWidthHz float64) float64 + func LinearInterpolate(x, y, newX []float64) ([]float64, error) + func Lorentz(x, center, width, asymmetry float64) float64 + func MapValues[T, U any](values []T, operation func(T) (U, error)) ([]U, error) + func NearestIndex(ppm []float64, target float64) (int, error) + func OrderFloat(values []float64, decreasing bool) []int + func PPMResolution(ppm []float64) (float64, error) + func PadZeros(values []float64, count int, side string) ([]float64, error) + func PasteColumns(columns [][]string, separator, collapse string) ([]string, error) + func PseudoVoigt(x, center, width, asymmetry, eta float64) float64 + func RMSError(reference, sample []float64) (float64, error) + func RandomNormal(count int, mean, standardDeviation float64, seed int64) ([]float64, error) + func RandomSample(values []float64, count int, replacement bool, seed int64) ([]float64, error) + func RandomUniform(count int, minimum, maximum float64, seed int64) ([]float64, error) + func RawToHex(values []byte) string + func ReadBinaryFile(path, kind, endian string, offset int64, count int) (any, error) + func ReadChar(data []byte) string + func ReadFloat32(data []byte, endian string) ([]float32, error) + func ReadInt16(data []byte, endian string) ([]int16, error) + func ReadInt32(data []byte, endian string) ([]int32, error) + func ReadUint16(data []byte, endian string) ([]uint16, error) + func RegexReplace(values []string, pattern, replacement string, all bool) ([]string, error) + func RemoveDCOffset(values []float64, tailPoints int) ([]float64, error) + func RepVector(values []float64, times, each int) ([]float64, error) + func ReplicateValues[T any](count int, operation func(int) (T, error)) ([]T, error) + func Run(args []string, input io.Reader, output io.Writer) error + func SegmentPeakList(peakList []int, start, end int) []int + func SeqInclusive(start, end, step int) ([]int, error) + func SeqLen(length int) ([]int, error) + func SeqRows(matrix DenseMatrix) [][]float64 + func SetDiffFloat(left, right []float64) []float64 + func ShiftAxis(ppm []float64, offset float64) []float64 + func ShiftPolynomialZero(coefficients []float64, zero float64) ([]float64, error) + func ShiftSeries(values []float64, points int, padding string) ([]float64, error) + func SplitVector(values []string, separator string, fixed bool) ([][]string, error) + func StandardError(values []float64) (float64, error) + func StartsWithVector(values []string, prefix string) []bool + func UniqueFloat(values []float64) []float64 + func UnitVector(values []float64) ([]float64, error) + func UpperVector(values []string) []string + func WhichIndices(mask []bool) []int + func ZeroFillPowerOfTwo(values []float64, factor int) ([]float64, error) + func ZeroFillTo(values []float64, target int) ([]float64, error) + type BatchResult struct + Error string + Index int + Result any + func ParallelMap(ctx context.Context, spectra [][]float64, workers int, ...) ([]BatchResult, error) + func ParallelMapComplex(ctx context.Context, spectra []PhaseSpectrum, workers int, ...) ([]BatchResult, error) + type BinnedXY struct + MeanX []float64 + SumY []float64 + func BinData(x, y []float64, width int) (BinnedXY, error) + type CenterSpread struct + Y float64 + YMax float64 + YMin float64 + func CenterSpreadInterval(values []float64, method string) (CenterSpread, error) + type DenseMatrix struct + Cols int + ColumnNames []string + Data []float64 + Rows int + func CBind(matrices ...DenseMatrix) (DenseMatrix, error) + func CrossProduct(left, right DenseMatrix) (DenseMatrix, error) + func EmbedVector(values []float64, dimension int) (DenseMatrix, error) + func ExpandGrid(columns [][]float64) (DenseMatrix, error) + func MatMul(left, right DenseMatrix) (DenseMatrix, error) + func NewDenseMatrix(rows, cols int, data []float64) (DenseMatrix, error) + func ScaleColumns(matrix DenseMatrix, center, scale bool) (DenseMatrix, error) + func SweepMatrix(matrix DenseMatrix, margin int, statistics []float64, operation string) (DenseMatrix, error) + func TransposeMatrix(matrix DenseMatrix) (DenseMatrix, error) + type InterpolationRequest struct + NewX []float64 + X []float64 + Y []float64 + type MatrixSummary struct + ColMeans []float64 + ColSums []float64 + RowMeans []float64 + RowSums []float64 + func MatrixSummaries(matrix DenseMatrix) (MatrixSummary, error) + type NoiseEstimate struct + Method string + Value float64 + func EstimateNoise(values []float64, method string) (NoiseEstimate, error) + type NumericQC struct + Count int + Maximum float64 + Mean float64 + Minimum float64 + RMS float64 + SampleVariance float64 + StandardDeviation float64 + func SummarizeNumeric(values []float64) (NumericQC, error) + type Peak struct + Index int + Intensity float64 + func LocalMaxima(spectrum []float64) []Peak + type PhaseSpectrum struct + Imag []float64 + Real []float64 + func ApodizeComplex(input PhaseSpectrum, kind string, dwellTime, parameter float64) (PhaseSpectrum, error) + func FFTShift(input PhaseSpectrum) (PhaseSpectrum, error) + func FourierTransform(input PhaseSpectrum, inverse bool) (PhaseSpectrum, error) + func PhaseCorrect(real, imag []float64, phi0, phi1 float64, reverse bool) (PhaseSpectrum, error) + func SimulateComplexNoise(count int, standardDeviation float64, seed int64) (PhaseSpectrum, error) + type RawFunctionInfo struct + Name string + Package string + Source string + Topic string + type RegionRequest struct + Intensity []float64 + PPM []float64 + Regions [][2]float64 + type RunLength struct + Length int + Value float64 + func RunLengths(values []float64) []RunLength + type SNRResult struct + DB float64 + Ratio float64 + func SignalNoiseRMS(signal, noise []float64) (SNRResult, error) + type SpectrumXY struct + X []float64 + Y []float64 + func CropSpectrum(ppm, intensity []float64, minimum, maximum float64) (SpectrumXY, error) + func ExcludeRegions(ppm, intensity []float64, regions [][2]float64) (SpectrumXY, error)