pcombi

package module
v0.0.0-...-b1c190c Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SimTest

func SimTest(seed uint64, tests int, tau float64, rank int, extrapvals []float64) string

SimTest --

func Splitmix64

func Splitmix64(state *uint64) uint64

Splitmix64 from http://prng.di.unimi.it

Types

type AugmentedRTP

type AugmentedRTP struct {
	L    int
	K    int
	Pval float64

	Name string
	// contains filtered or unexported fields
}

AugmentedRTP --

func NewART

func NewART(rank int) AugmentedRTP

NewART --

func (AugmentedRTP) Line

func (a AugmentedRTP) Line() string

Line --

func (*AugmentedRTP) Pvalue

func (a *AugmentedRTP) Pvalue(p []float64) float64

Pvalue is the ART function in Vsevolozhskaya et al.

type Fisher

type Fisher struct {
	Pval float64
	N    int
	Name string
	// contains filtered or unexported fields
}

Fisher --

func NewFisher

func NewFisher() Fisher

NewFisher --

func (Fisher) Line

func (f Fisher) Line() string

Line --

func (*Fisher) Pvalue

func (f *Fisher) Pvalue(p []float64) float64

Pvalue --

type IntegratedRTP

type IntegratedRTP struct {
	L int
	K int
	W float64

	UpSteps     int
	Maxdepth    int
	Integration int
	Tol         float64
	Pval        float64
	Calls       int
	Method      int
	Name        string
	// contains filtered or unexported fields
}

IntegratedRTP --

func NewRTP

func NewRTP(rank int) IntegratedRTP

NewRTP --

func (*IntegratedRTP) Error

func (i *IntegratedRTP) Error(p []float64) (float64, float64)

func (IntegratedRTP) Line

func (x IntegratedRTP) Line() string

Line --

func (*IntegratedRTP) Pvalue

func (i *IntegratedRTP) Pvalue(p []float64) float64

Pvalue --

type Rand

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

Rand --

func NewRand

func NewRand(seed uint64) *Rand

NewRand --

func (*Rand) Float64

func (x *Rand) Float64() float64

Float64 --

func (*Rand) Seed

func (x *Rand) Seed(seed uint64)

Seed --

func (*Rand) Uint64

func (x *Rand) Uint64() (next uint64)

Uint64 is xoroshiro128** from http://prng.di.unimi.it

type Sidak

type Sidak struct {
	Pmin float64
	Pval float64
	N    int
	Name string
}

Sidak --

func NewSidak

func NewSidak() Sidak

NewSidak --

func (Sidak) Line

func (s Sidak) Line() string

Line --

func (*Sidak) Pvalue

func (s *Sidak) Pvalue(p []float64) float64

Pvalue --

type SimulatedRTP

type SimulatedRTP struct {
	L          int
	K          int
	Rounds     int
	Simulation int
	Pval       float64

	U    []float64
	Rand Rand
	Name string
	// contains filtered or unexported fields
}

SimulatedRTP --

func NewSimulatedRTP

func NewSimulatedRTP(seed uint64, rounds, rank int) SimulatedRTP

NewSimulatedRTP --

func (SimulatedRTP) Line

func (s SimulatedRTP) Line() string

Line --

func (*SimulatedRTP) Pvalue

func (s *SimulatedRTP) Pvalue(p []float64) float64

Pvalue --

type SimulatedTP

type SimulatedTP struct {
	Simulation int
	L          int
	Rounds     int
	Pval       float64
	Tau        float64

	Rand Rand
	Name string
	// contains filtered or unexported fields
}

SimulatedTP --

func NewSimulatedTFisher

func NewSimulatedTFisher(seed uint64, rounds, tests int, tau float64) SimulatedTP

NewSimulatedTFisher --

func NewSimulatedTPM

func NewSimulatedTPM(seed uint64, rounds, tests int, tau float64) SimulatedTP

NewSimulatedTPM --

func (SimulatedTP) Line

func (s SimulatedTP) Line() string

Line --

func (*SimulatedTP) Pvalue

func (s *SimulatedTP) Pvalue(p []float64) float64

Pvalue --

func (*SimulatedTP) PvalueTFisher

func (s *SimulatedTP) PvalueTFisher(p []float64) float64

PvalueTFisher implements soft TFisher method by simulation.

func (*SimulatedTP) PvalueTPM

func (s *SimulatedTP) PvalueTPM(p []float64) float64

PvalueTPM implements Truncated product method (TPM) by simulation.

type TFisher

type TFisher struct {
	L    int
	K    int
	Pval float64
	Tau  float64
	Tol  float64
	W    float64

	Method int
	Name   string
	// contains filtered or unexported fields
}

TFisher --

func NewTFisher

func NewTFisher(tau float64) TFisher

NewTFisher --

func NewTPM

func NewTPM(tau float64) TFisher

NewTPM --

func (TFisher) Line

func (s TFisher) Line() string

Line --

func (*TFisher) Pvalue

func (t *TFisher) Pvalue(p []float64) float64

Pvalue --

func (*TFisher) PvalueTFisher

func (t *TFisher) PvalueTFisher(p []float64) float64

PvalueTFisher --

func (*TFisher) PvalueTPM

func (t *TFisher) PvalueTPM(p []float64) float64

PvalueTPM --

type Wilkinson

type Wilkinson struct {
	Tau   float64
	Pval  float64
	N     int
	Count int
	Name  string
}

Wilkinson --

func NewWilkinson

func NewWilkinson(tau float64) Wilkinson

NewWilkinson --

func (Wilkinson) Line

func (w Wilkinson) Line() string

Line --

func (*Wilkinson) Pvalue

func (w *Wilkinson) Pvalue(p []float64) float64

Pvalue --

Jump to

Keyboard shortcuts

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