goanova

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 5 Imported by: 0

README

GoAnova

An implementation of a One-Way analysis of variance (ANOVA) using Golang

See:

Based on these instructions:

Inspiration taken from the following sources:

TODO:

  • Implement other ANOVA calculations

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnovaDataPoint

type AnovaDataPoint struct {
	Value float64
	Group string
}

type AnovaInput

type AnovaInput struct {
	DataPoints []AnovaDataPoint
	// contains filtered or unexported fields
}

func (*AnovaInput) AddDataPointGroup added in v1.1.0

func (anovaInput *AnovaInput) AddDataPointGroup(groupName string, values []float64)

func (*AnovaInput) Append added in v1.1.0

func (anoveInput *AnovaInput) Append(dataPoint *AnovaDataPoint)

func (*AnovaInput) CalculateAnovaTable

func (anovaInput *AnovaInput) CalculateAnovaTable(alpha float64) AnovaTable

Calculates an Anova table on an instance of AnoveInput

func (*AnovaInput) Read added in v1.1.0

func (anoveInput *AnovaInput) Read() *[]AnovaDataPoint

func (*AnovaInput) Reset added in v1.1.0

func (anoveInput *AnovaInput) Reset()

type AnovaTable

type AnovaTable struct {
	SSRegression, SSTotal, SSError float64
	DfRegression, DfTotal, DfError float64
	MSRegression, MSTotal, MSError float64
	F                              float64
	P                              float64
	Significant                    bool
}

Jump to

Keyboard shortcuts

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