package app

import "golang.org/x/perf/analysis/app"

Package app implements the performance data analysis server.

Index

Functions

func AdaptiveKolmogorovZurbenko

func AdaptiveKolmogorovZurbenko(xs []float64, m, k int) []float64

AdaptiveKolmogorovZurbenko performs an adaptive Kolmogorov-Zurbenko (KZA) filter of xs using an initial window size m and k iterations. m must be a positive odd integer. k must be positive.

See Zurbenko, et al. 1996: Detecting discontinuities in time series of upper air data: Demonstration of an adaptive filter technique. Journal of Climate, 9, 3548–3560.

func KolmogorovZurbenko

func KolmogorovZurbenko(xs []float64, m, k int) []float64

KolmogorovZurbenko performs a Kolmogorov-Zurbenko (KZ) filter of xs with window size m and k iterations. m must be a positive odd integer. k must be positive.

func MovingAverage

func MovingAverage(xs []float64, m int) []float64

MovingAverage performs a moving average (MA) filter of xs with window size m. m must be a positive odd integer.

Note that this is filter is often described in terms of the half length of the window (m-1)/2.

Types

type App

type App struct {
	// StorageClient is used to talk to the storage server.
	StorageClient *storage.Client

	// BaseDir is the directory containing the "template" directory.
	// If empty, the current directory will be used.
	BaseDir string
}

App manages the analysis server logic. Construct an App instance and call RegisterOnMux to connect it with an HTTP server.

func (*App) RegisterOnMux

func (a *App) RegisterOnMux(mux *http.ServeMux)

RegisterOnMux registers the app's URLs on mux.

Source Files

app.go compare.go index.go kza.go local.go parse.go trend.go

Version
v0.0.0-20250214215153-c95ad7d5b636 (latest)
Published
Feb 14, 2025
Platform
linux/amd64
Imports
22 packages
Last checked
1 week ago

Tools for package owners.