Documentation
¶
Index ¶
- func Booster(reftreefile, boottreefile string, logfile *os.File, empirical bool, cpus int) (*tree.Tree, error)
- func BoosterFile(reftreefile, boottreefile *bufio.Reader, logfile *os.File, empirical bool, ...) (*tree.Tree, error)
- func Classical(reftreefile, boottreefile string, cpus int) (*tree.Tree, error)
- func ComputeSupport(reftreefile, boottreefile string, logfile *os.File, empirical bool, cpus int, ...) (*tree.Tree, error)
- func ComputeSupportFile(reftreefile, boottreefile *bufio.Reader, logfile *os.File, empirical bool, ...) (*tree.Tree, error)
- func Update_all_i_c_post_order_boot_tree(refTree *tree.Tree, ntips uint, edges *[]*tree.Edge, bootTree *tree.Tree, ...) error
- func Update_all_i_c_post_order_ref_tree(refTree *tree.Tree, edges *[]*tree.Edge, bootTree *tree.Tree, ...)
- type BoosterSupporter
- func (supporter *BoosterSupporter) Cancel()
- func (supporter *BoosterSupporter) Canceled() bool
- func (supporter *BoosterSupporter) ComputeValue(refTree *tree.Tree, empiricalTrees []*tree.Tree, cpu int, empirical bool, ...) error
- func (supporter *BoosterSupporter) ExpectedRandValues(depth int) float64
- func (supporter *BoosterSupporter) Init(maxdepth int, nbtips int)
- func (supporter *BoosterSupporter) NewBootTreeComputed()
- func (supporter *BoosterSupporter) ProbaDepthValue(d int, v int) float64
- func (supporter *BoosterSupporter) Progress() int
- type Supporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoosterFile ¶ added in v0.1.11
func ComputeSupport ¶
func ComputeSupportFile ¶ added in v0.1.10
func Update_all_i_c_post_order_boot_tree ¶ added in v0.1.4
Types ¶
type BoosterSupporter ¶ added in v0.1.11
type BoosterSupporter struct {
// contains filtered or unexported fields
}
func (*BoosterSupporter) Cancel ¶ added in v0.1.11
func (supporter *BoosterSupporter) Cancel()
func (*BoosterSupporter) Canceled ¶ added in v0.1.11
func (supporter *BoosterSupporter) Canceled() bool
func (*BoosterSupporter) ComputeValue ¶ added in v0.1.11
func (supporter *BoosterSupporter) ComputeValue(refTree *tree.Tree, empiricalTrees []*tree.Tree, cpu int, empirical bool, edges []*tree.Edge, randEdges [][]*tree.Edge, bootTreeChannel <-chan tree.Trees, valChan chan<- bootval, randvalChan chan<- bootval, speciesChannel chan<- speciesmoved) error
Thread that takes bootstrap trees from the channel, computes the transfer dist for each edges of the ref tree and send it to the result channel
func (*BoosterSupporter) ExpectedRandValues ¶ added in v0.1.11
func (supporter *BoosterSupporter) ExpectedRandValues(depth int) float64
func (*BoosterSupporter) Init ¶ added in v0.1.11
func (supporter *BoosterSupporter) Init(maxdepth int, nbtips int)
func (*BoosterSupporter) NewBootTreeComputed ¶ added in v0.1.11
func (supporter *BoosterSupporter) NewBootTreeComputed()
func (*BoosterSupporter) ProbaDepthValue ¶ added in v0.1.11
func (supporter *BoosterSupporter) ProbaDepthValue(d int, v int) float64
func (*BoosterSupporter) Progress ¶ added in v0.1.11
func (supporter *BoosterSupporter) Progress() int
type Supporter ¶
type Supporter interface {
Init(maxdepth int, nbtips int)
ExpectedRandValues(depth int) float64
ProbaDepthValue(d int, v int) float64
ComputeValue(refTree *tree.Tree, empiricalTrees []*tree.Tree, cpu int, empirical bool, edges []*tree.Edge, randEdges [][]*tree.Edge,
bootTreeChannel <-chan tree.Trees, valChan chan<- bootval, randvalChan chan<- bootval, speciesChannel chan<- speciesmoved) error
// Returns the number of bootstrap trees that have been computed
Progress() int
// Increments the number of trees processed
NewBootTreeComputed()
// Tells the supported to stop accepting new bootstrap trees from the bootTreeChannel
// It will just finish the current computations
Cancel()
// Tells if hasbeen canceled or not
Canceled() bool
}
Click to show internal directories.
Click to hide internal directories.