Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { ID int Levels []Level Stats Statistics }
Block stores information on blocks for experiments that use blocking.
type Experimenter ¶
Experimenter is an interface that defines calculations to evaluate an experiment.
type Level ¶
type Level struct { ID int Name string Description string Stats Statistics }
Level contains information related to levels of a factor.
type Leveler ¶
type Leveler interface {
// contains filtered or unexported methods
}
Leveler defines behavior related to factor and block levels.
type RCBDExperiment ¶
type RCBDExperiment struct {
// contains filtered or unexported fields
}
RCBDExperiment stores all the information about an experiment.
func NewRCBDExperiment ¶
func NewRCBDExperiment(id int64, f Factor, b Block) RCBDExperiment
NewRCBDExperiment generates a new experiment and generates the slice of subjects that can be randomly assigned as the experiment commences.
func (*RCBDExperiment) BulkUpdate ¶
func (re *RCBDExperiment) BulkUpdate(obs []Subject) error
BulkUpdate will update multiple subjects at once.
func (*RCBDExperiment) Evaluate ¶
func (re *RCBDExperiment) Evaluate(impute bool) error
Evaluate calculates the statistics for the experiment and stores them in the stats field. If impute is set to true, evaluate will impute missing values, if it is set to false, the evaluation will not be completed.
func (*RCBDExperiment) RandomID ¶
func (re *RCBDExperiment) RandomID() int64
RandomID returns a random ID from those still available and sets the ID to filled.
func (*RCBDExperiment) UpdateObs ¶
func (re *RCBDExperiment) UpdateObs(obs Subject) error
UpdateObs will update the value for a subject in the experiment.
type SourceOfVariation ¶
type SourceOfVariation struct {
// contains filtered or unexported fields
}
SourceOfVariation stores summary information for a source of variation
type Statistics ¶
Statistics stores summary statistics information