problems

package
v0.0.0-...-3e44a7a Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BenchmarkList = []Benchmark{
	Benchmark{"Koza_1", []BenchmarkVar{xU11}, 200, []BenchmarkVar{xU11}, 2000, vladiFuncsA, vladiFuncsA_NT, "x^4 + x^3 + x^2 + x"},
	Benchmark{"Koza_2", []BenchmarkVar{xU11}, 200, []BenchmarkVar{xU11}, 2000, vladiFuncsA, vladiFuncsA_NT, "x^5 - 2x^3 + x"},
	Benchmark{"Koza_3", []BenchmarkVar{xU11}, 200, []BenchmarkVar{xU11}, 2000, vladiFuncsA, vladiFuncsA_NT, "x^6 - 2x^4 + x^2"},

	Benchmark{"Nguyen_01", []BenchmarkVar{xU11}, 200, []BenchmarkVar{xU11}, 2000, vladiFuncsA, vladiFuncsA_NT, "x^3 + x^2 + x"},
	Benchmark{"Nguyen_02", []BenchmarkVar{xU11}, 200, []BenchmarkVar{xU11}, 2000, vladiFuncsA, vladiFuncsA_NT, "x^4 + x^3 + x^2 + x"},
	Benchmark{"Nguyen_03", []BenchmarkVar{xU11}, 200, []BenchmarkVar{xU11}, 2000, vladiFuncsA, vladiFuncsA_NT, "x^5 + x^4 + x^3 + x^2 + x"},
	Benchmark{"Nguyen_04", []BenchmarkVar{xU11}, 200, []BenchmarkVar{xU11}, 2000, vladiFuncsA, vladiFuncsA_NT, "x^6 + x^5 + x^4 + x^3 + x^2 + x"},
	Benchmark{"Nguyen_05", []BenchmarkVar{xU11}, 200, []BenchmarkVar{xU11}, 2000, kozaFuncs, kozaFuncs_NT, "sin(x^2)*cos(x) - 1"},
	Benchmark{"Nguyen_06", []BenchmarkVar{xU11}, 200, []BenchmarkVar{xU11}, 2000, kozaFuncs, kozaFuncs_NT, "sin(x) + sin(x + x^2)"},
	Benchmark{"Nguyen_07", []BenchmarkVar{xU02}, 200, []BenchmarkVar{xU02}, 2000, kozaFuncs, kozaFuncs_NT, "ln(x+1) + ln(x^2 + 1)"},
	Benchmark{"Nguyen_08", []BenchmarkVar{xU04}, 200, []BenchmarkVar{xU04}, 2000, kozaFuncs, kozaFuncs_NT, "sqrt(x)"},
	Benchmark{"Nguyen_09", xyU01, 200, xyU01, 2000, kozaFuncs, kozaFuncs_NT, "sin(x) + sin(y^2)"},
	Benchmark{"Nguyen_10", xyU01, 200, xyU01, 2000, kozaFuncs, kozaFuncs_NT, "2*sin(x)*cos(y)"},
	Benchmark{"Nguyen_11", xyU01, 200, xyU01, 2000, kozaFuncs, kozaFuncs_NT, "x^y"},
	Benchmark{"Nguyen_12", xyU01, 200, xyU01, 2000, vladiFuncsA, vladiFuncsA_NT, "x^4 - x^3 + 0.5*y^2 - y"},

	Benchmark{"Pagie_1", xyE55_4, 0, xyE55_4, 0, kozaFuncs, kozaFuncs_NT, "1 / (1 + x^-4) + 1 / (1 + y^-4)"},

	Benchmark{"Korns_01", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "1.57 + 24.3*v"},
	Benchmark{"Korns_02", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "0.23 + 14.2*(v+y)/3w"},
	Benchmark{"Korns_03", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "-5.41 + 4.9*(v-x+y/w)/3w"},
	Benchmark{"Korns_04", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "-2.3 + 0.13sin(z)"},
	Benchmark{"Korns_05", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "3 + 2.13*ln(w)"},
	Benchmark{"Korns_06", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "1.3 + 0.13*sqrt(x)"},
	Benchmark{"Korns_07", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "213.80940889*(1 - e^(-0.54723748542*x))"},
	Benchmark{"Korns_08", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "6.87 + 11*sqrt(7.23*x*v*w)"},
	Benchmark{"Korns_09", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "(sqrt(x)/ln(y)) * (e^z / v^2)"},
	Benchmark{"Korns_10", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "0.81 + 24.3*(2y+3*z^2)/(4*(v)^3+5*(w)^4)"},
	Benchmark{"Korns_11", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "6.87 + 11*cos(7.23*x^3)"},
	Benchmark{"Korns_12", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "2 - 2.1*cos(9.8*x)*sin(1.3*w)"},
	Benchmark{"Korns_13", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "32 - 3*(tan(x)*tan(z))/(tan(y)*tan(v))"},
	Benchmark{"Korns_14", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "22 - 4.2*(cos(x)-tan(y))*(tanh(z)/sin(v))"},
	Benchmark{"Korns_15", korns5, 200, korns5, 2000, kornsFuncs, kornsFuncs_NT, "12 - 6*(tan(x)/e^y)(ln(z)-tan(v))"},

	Benchmark{"Keijzer_01", []BenchmarkVar{xE11_01}, 0, []BenchmarkVar{xE11_001}, 0, vladiFuncsA, vladiFuncsA_NT, "0.3*x*sin(2*PI*x)"},
	Benchmark{"Keijzer_02", []BenchmarkVar{xE22_01}, 0, []BenchmarkVar{xE22_001}, 0, vladiFuncsA, vladiFuncsA_NT, "0.3*x*sin(2*PI*x)"},
	Benchmark{"Keijzer_03", []BenchmarkVar{xE33_01}, 0, []BenchmarkVar{xE33_001}, 0, vladiFuncsA, vladiFuncsA_NT, "0.3*x*sin(2*PI*x)"},
}
View Source
var MAX_BBQ_SIZE = 1 << 20

Functions

func ParseTreeParams

func ParseTreeParams(field, value string, config interface{}) (found bool, err error)

func ProbConfigParser

func ProbConfigParser(field, value string, config interface{}) (err error)

Types

type Benchmark

type Benchmark struct {
	Name         string
	TrainVars    []BenchmarkVar
	TrainSamples int
	TestVars     []BenchmarkVar
	TestSamples  int

	Functions []string
	NonTrig   []string
	FuncText  string // function as text

}

type BenchmarkVar

type BenchmarkVar struct {
	Name    string
	Index   int
	Rtype   RangeType
	L, H, S float64 // low,high,step of range
}

type ExprProblem

type ExprProblem struct {
	Name     string
	VarNames []string
	FuncTree expr.Expr // function as tree
	MaxIter  int

	// type of evaluation / data
	SearchType ExprProblemType

	// data
	TrainFns []string
	TestFns  []string
	Train    []*PointSet
	Test     []*PointSet
	HitRatio float64

	// variable information
	SearchVar  int
	UsableVars []int
	IndepNames []string
	DepndNames []string
	SysNames   []string

	// tree gen/restrict information
	TreeCfg *TreeParams
}

func GenBenchmark

func GenBenchmark(b Benchmark) (p *ExprProblem)

type ExprProblemComm

type ExprProblemComm struct {
	// incoming channels
	Cmds chan int

	// outgoing channels
	Rpts chan *ExprReportArray
	Gen  chan [2]int
}

type ExprProblemType

type ExprProblemType int
const (
	UnknownPType ExprProblemType = iota
	ExprBenchmark
	ExprDiffeq
	ExprRealData
)

func ProblemTypeFromString

func ProblemTypeFromString(ptype string) ExprProblemType

func (ExprProblemType) String

func (ept ExprProblemType) String() string

type ExprReport

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

func (*ExprReport) Clone

func (r *ExprReport) Clone() *ExprReport

func (*ExprReport) Coeff

func (r *ExprReport) Coeff() []float64

func (*ExprReport) Expr

func (r *ExprReport) Expr() expr.Expr

func (*ExprReport) IterID

func (r *ExprReport) IterID() int

func (*ExprReport) Latex

func (r *ExprReport) Latex(dnames, snames []string, cvals []float64) string

func (*ExprReport) PredError

func (r *ExprReport) PredError() float64

func (*ExprReport) PredErrorZ

func (r *ExprReport) PredErrorZ() []float64

func (*ExprReport) PredScore

func (r *ExprReport) PredScore() int

func (*ExprReport) PredScoreZ

func (r *ExprReport) PredScoreZ() []int

func (*ExprReport) ProcID

func (r *ExprReport) ProcID() int

func (*ExprReport) SetCoeff

func (r *ExprReport) SetCoeff(c []float64)

func (*ExprReport) SetExpr

func (r *ExprReport) SetExpr(e expr.Expr)

func (*ExprReport) SetIterID

func (r *ExprReport) SetIterID(i int)

func (*ExprReport) SetPredError

func (r *ExprReport) SetPredError(e float64)

func (*ExprReport) SetPredErrorZ

func (r *ExprReport) SetPredErrorZ(e []float64)

func (*ExprReport) SetPredScore

func (r *ExprReport) SetPredScore(s int)

func (*ExprReport) SetPredScoreZ

func (r *ExprReport) SetPredScoreZ(s []int)

func (*ExprReport) SetProcID

func (r *ExprReport) SetProcID(i int)

func (*ExprReport) SetTestError

func (r *ExprReport) SetTestError(e float64)

func (*ExprReport) SetTestErrorZ

func (r *ExprReport) SetTestErrorZ(e []float64)

func (*ExprReport) SetTestScore

func (r *ExprReport) SetTestScore(s int)

func (*ExprReport) SetTestScoreZ

func (r *ExprReport) SetTestScoreZ(s []int)

func (*ExprReport) SetTrainError

func (r *ExprReport) SetTrainError(e float64)

func (*ExprReport) SetTrainErrorZ

func (r *ExprReport) SetTrainErrorZ(e []float64)

func (*ExprReport) SetTrainScore

func (r *ExprReport) SetTrainScore(s int)

func (*ExprReport) SetTrainScoreZ

func (r *ExprReport) SetTrainScoreZ(s []int)

func (*ExprReport) SetUniqID

func (r *ExprReport) SetUniqID(i int)

func (*ExprReport) SetUnitID

func (r *ExprReport) SetUnitID(i int)

func (*ExprReport) Size

func (r *ExprReport) Size() int

func (*ExprReport) String

func (r *ExprReport) String() string

func (*ExprReport) TestError

func (r *ExprReport) TestError() float64

func (*ExprReport) TestErrorZ

func (r *ExprReport) TestErrorZ() []float64

func (*ExprReport) TestScore

func (r *ExprReport) TestScore() int

func (*ExprReport) TestScoreZ

func (r *ExprReport) TestScoreZ() []int

func (*ExprReport) TrainError

func (r *ExprReport) TrainError() float64

func (*ExprReport) TrainErrorZ

func (r *ExprReport) TrainErrorZ() []float64

func (*ExprReport) TrainScore

func (r *ExprReport) TrainScore() int

func (*ExprReport) TrainScoreZ

func (r *ExprReport) TrainScoreZ() []int

func (*ExprReport) UniqID

func (r *ExprReport) UniqID() int

func (*ExprReport) UnitID

func (r *ExprReport) UnitID() int

type ExprReportArray

type ExprReportArray []*ExprReport

Array of ExprReports

func (ExprReportArray) Len

func (p ExprReportArray) Len() int

func (ExprReportArray) Less

func (p ExprReportArray) Less(i, j int) bool

func (ExprReportArray) Swap

func (p ExprReportArray) Swap(i, j int)

type ExprReportArrayPredError

type ExprReportArrayPredError struct {
	Array ExprReportArray
}

func (ExprReportArrayPredError) Len

func (p ExprReportArrayPredError) Len() int

func (ExprReportArrayPredError) Less

func (p ExprReportArrayPredError) Less(i, j int) bool

func (ExprReportArrayPredError) Swap

func (p ExprReportArrayPredError) Swap(i, j int)

type PntSubset

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

func (*PntSubset) AddPoint

func (s *PntSubset) AddPoint(p int, input, output *Point)

func (*PntSubset) DS

func (s *PntSubset) DS() *PointSet

func (*PntSubset) ID

func (s *PntSubset) ID() int

func (*PntSubset) Index

func (s *PntSubset) Index(p int) int

func (*PntSubset) Indexes

func (s *PntSubset) Indexes() []int

func (*PntSubset) Input

func (s *PntSubset) Input(p int) *Point

func (*PntSubset) NumDepnd

func (s *PntSubset) NumDepnd() int

func (*PntSubset) NumIndep

func (s *PntSubset) NumIndep() int

func (*PntSubset) NumPoints

func (s *PntSubset) NumPoints() int

func (*PntSubset) NumSys

func (s *PntSubset) NumSys() int

func (*PntSubset) Output

func (s *PntSubset) Output(p int) *Point

func (*PntSubset) Refresh

func (s *PntSubset) Refresh()

using indexes, update the input/output data

func (*PntSubset) SetDS

func (s *PntSubset) SetDS(ds *PointSet)

func (*PntSubset) SetIndexes

func (s *PntSubset) SetIndexes(idxs []int)

func (*PntSubset) SetSysVals

func (s *PntSubset) SetSysVals(svls []float64)

func (*PntSubset) SysVals

func (s *PntSubset) SysVals() []float64

type Point

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

func GenBenchData

func GenBenchData(e expr.Expr, vars []BenchmarkVar, samples int) (pts []Point)

func (*Point) Depnd

func (d *Point) Depnd(p int) float64

func (*Point) Depnds

func (d *Point) Depnds() []float64

func (*Point) Indep

func (d *Point) Indep(p int) float64

func (*Point) Indeps

func (d *Point) Indeps() []float64

func (*Point) NumDepnd

func (d *Point) NumDepnd() int

func (*Point) NumIndep

func (d *Point) NumIndep() int

func (*Point) SetDepnd

func (d *Point) SetDepnd(p int, v float64)

func (*Point) SetDepnds

func (d *Point) SetDepnds(v []float64)

func (*Point) SetIndep

func (d *Point) SetIndep(p int, v float64)

func (*Point) SetIndeps

func (d *Point) SetIndeps(v []float64)

func (*Point) SetNumDepnd

func (d *Point) SetNumDepnd(sz int)

func (*Point) SetNumIndep

func (d *Point) SetNumIndep(sz int)

type PointSet

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

func ReadBytesPointSet

func ReadBytesPointSet(ftotal []byte) (d *PointSet)

func SplitPointSetTrainTest

func SplitPointSetTrainTest(pnts *PointSet, pcnt_train float64, seed int) (train, test *PointSet)

func (*PointSet) DepndName

func (d *PointSet) DepndName(xi int) string

func (*PointSet) FN

func (d *PointSet) FN() string

func (*PointSet) GetDepndNames

func (d *PointSet) GetDepndNames() []string

func (*PointSet) GetIndepNames

func (d *PointSet) GetIndepNames() []string

func (*PointSet) GetSysNames

func (d *PointSet) GetSysNames() []string

func (*PointSet) ID

func (d *PointSet) ID() int

func (*PointSet) IndepName

func (d *PointSet) IndepName(xi int) string

func (*PointSet) NumDepnd

func (d *PointSet) NumDepnd() int

func (*PointSet) NumDim

func (d *PointSet) NumDim() int

func (*PointSet) NumIndep

func (d *PointSet) NumIndep() int

func (*PointSet) NumPoints

func (d *PointSet) NumPoints() int

func (*PointSet) NumSys

func (d *PointSet) NumSys() int

func (*PointSet) Point

func (d *PointSet) Point(p int) *Point

func (*PointSet) Points

func (d *PointSet) Points() []Point

func (*PointSet) ReadLakeFile

func (d *PointSet) ReadLakeFile(filename string)

func (*PointSet) ReadPointSet

func (d *PointSet) ReadPointSet(filename string)

func (*PointSet) SetDepndNames

func (d *PointSet) SetDepndNames(names []string)

func (*PointSet) SetFN

func (d *PointSet) SetFN(fn string)

func (*PointSet) SetID

func (d *PointSet) SetID(id int)

func (*PointSet) SetIndepNames

func (d *PointSet) SetIndepNames(names []string)

func (*PointSet) SetNumDim

func (d *PointSet) SetNumDim(dim int)

func (*PointSet) SetNumPoints

func (d *PointSet) SetNumPoints(cnt int)

func (*PointSet) SetPoints

func (d *PointSet) SetPoints(pts []Point)

func (*PointSet) SetSysNames

func (d *PointSet) SetSysNames(names []string)

func (*PointSet) SetSysVals

func (d *PointSet) SetSysVals(sv []float64)

func (*PointSet) SysName

func (d *PointSet) SysName(si int) string

func (*PointSet) SysVal

func (d *PointSet) SysVal(p int) float64

func (*PointSet) SysVals

func (d *PointSet) SysVals() []float64

func (*PointSet) WritePointSet

func (d *PointSet) WritePointSet(filename string)

type RangeType

type RangeType int
const (
	Uniform RangeType
	Equal
)

type ReportList

type ReportList struct {
	Head *ReportListNode
	Tail *ReportListNode
	// contains filtered or unexported fields
}

func (*ReportList) Back

func (self *ReportList) Back() (node *ReportListNode)

func (*ReportList) Front

func (self *ReportList) Front() (node *ReportListNode)

func (*ReportList) Len

func (self *ReportList) Len() int

func (*ReportList) PushBack

func (self *ReportList) PushBack(rpt *ExprReport)

func (*ReportList) PushFront

func (self *ReportList) PushFront(rpt *ExprReport)

func (*ReportList) Remove

func (self *ReportList) Remove(node *ReportListNode)

type ReportListNode

type ReportListNode struct {
	Rpt *ExprReport
	// contains filtered or unexported fields
}

func (*ReportListNode) Next

func (self *ReportListNode) Next() *ReportListNode

func (*ReportListNode) Prev

func (self *ReportListNode) Prev() *ReportListNode

type ReportQueue

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

Enhanced ExprReport Array with variable sorting methods NOTE!!! the storage is reverse order

func NewQueueFromArray

func NewQueueFromArray(era ExprReportArray) *ReportQueue

func NewReportQueue

func NewReportQueue() *ReportQueue

func (*ReportQueue) GP_ParetoPredError

func (bb *ReportQueue) GP_ParetoPredError()

func (*ReportQueue) GP_ParetoPredHits

func (bb *ReportQueue) GP_ParetoPredHits()

func (*ReportQueue) GP_ParetoTestError

func (bb *ReportQueue) GP_ParetoTestError()

func (*ReportQueue) GP_ParetoTestHits

func (bb *ReportQueue) GP_ParetoTestHits()

func (*ReportQueue) GP_ParetoTrainError

func (bb *ReportQueue) GP_ParetoTrainError()

func (*ReportQueue) GP_ParetoTrainHits

func (bb *ReportQueue) GP_ParetoTrainHits()

func (*ReportQueue) GetQueue

func (bb *ReportQueue) GetQueue() ExprReportArray

func (*ReportQueue) GetReport

func (bb *ReportQueue) GetReport(pos int) (er *ExprReport)

func (ReportQueue) Len

func (bb ReportQueue) Len() int

func (ReportQueue) Less

func (bb ReportQueue) Less(i, j int) bool

func (*ReportQueue) PE_ParetoPredError

func (bb *ReportQueue) PE_ParetoPredError()

func (*ReportQueue) PE_ParetoPredHits

func (bb *ReportQueue) PE_ParetoPredHits()

func (*ReportQueue) PE_ParetoTestError

func (bb *ReportQueue) PE_ParetoTestError()

func (*ReportQueue) PE_ParetoTestHits

func (bb *ReportQueue) PE_ParetoTestHits()

func (*ReportQueue) PE_ParetoTrainError

func (bb *ReportQueue) PE_ParetoTrainError()

func (*ReportQueue) PE_ParetoTrainHits

func (bb *ReportQueue) PE_ParetoTrainHits()

func (*ReportQueue) Pop

func (bb *ReportQueue) Pop() interface{}

func (*ReportQueue) Push

func (bb *ReportQueue) Push(x interface{})

func (*ReportQueue) Reverse

func (self *ReportQueue) Reverse()

func (*ReportQueue) SetReport

func (bb *ReportQueue) SetReport(pos int, er *ExprReport)

func (*ReportQueue) SetSort

func (bb *ReportQueue) SetSort(sortmethod SortType)

func (*ReportQueue) Sort

func (bb *ReportQueue) Sort()

func (ReportQueue) Swap

func (bb ReportQueue) Swap(i, j int)

type SortType

type SortType int
const (
	SORT_NULL SortType = iota

	GPSORT_SIZE

	GPSORT_PRE_HIT
	GPSORT_TRN_HIT
	GPSORT_TST_HIT
	GPSORT_PRE_ERR
	GPSORT_TRN_ERR
	GPSORT_TST_ERR

	GPSORT_SIZE_PRE_HIT
	GPSORT_SIZE_TRN_HIT
	GPSORT_SIZE_TST_HIT
	GPSORT_SIZE_PRE_ERR
	GPSORT_SIZE_TRN_ERR
	GPSORT_SIZE_TST_ERR

	GPSORT_PRE_HIT_SIZE
	GPSORT_TRN_HIT_SIZE
	GPSORT_TST_HIT_SIZE
	GPSORT_PRE_ERR_SIZE
	GPSORT_TRN_ERR_SIZE
	GPSORT_TST_ERR_SIZE

	GPSORT_PARETO_PRE_ERR
	GPSORT_PARETO_TRN_ERR
	GPSORT_PARETO_TST_ERR
	GPSORT_PARETO_PRE_HIT
	GPSORT_PARETO_TRN_HIT
	GPSORT_PARETO_TST_HIT

	PESORT_SIZE

	PESORT_PRE_HIT
	PESORT_TRN_HIT
	PESORT_TST_HIT
	PESORT_PRE_ERR
	PESORT_TRN_ERR
	PESORT_TST_ERR

	PESORT_SIZE_PRE_HIT
	PESORT_SIZE_TRN_HIT
	PESORT_SIZE_TST_HIT
	PESORT_SIZE_PRE_ERR
	PESORT_SIZE_TRN_ERR
	PESORT_SIZE_TST_ERR

	PESORT_PRE_HIT_SIZE
	PESORT_TRN_HIT_SIZE
	PESORT_TST_HIT_SIZE
	PESORT_PRE_ERR_SIZE
	PESORT_TRN_ERR_SIZE
	PESORT_TST_ERR_SIZE

	PESORT_PARETO_PRE_ERR
	PESORT_PARETO_TRN_ERR
	PESORT_PARETO_TST_ERR
	PESORT_PARETO_PRE_HIT
	PESORT_PARETO_TRN_HIT
	PESORT_PARETO_TST_HIT
)

type TreeParams

type TreeParams struct {

	// bounds on tree
	MaxSize, MaxDepth,
	MinSize, MinDepth int

	// usable terms at each location
	RootsS, NodesS, LeafsS, NonTrigS []string
	RootsT, NodesT, LeafsT, NonTrigT []expr.ExprType
	Roots, Nodes, Leafs, NonTrig     []expr.Expr

	// simplify options
	DoSimp bool
	SRules expr.SimpRules

	// bounds on some operands
	UsableVars               []int
	NumDim, NumSys, NumCoeff int

	// tpm bounds on tree (for subtree distributions)
	TmpMaxSize, TmpMaxDepth,
	TmpMinSize, TmpMinDepth int

	// Current values
	CurrSize, CurrDepth int
	InTrig              bool
	CoeffCount          int
}

func (*TreeParams) CheckExpr

func (tp *TreeParams) CheckExpr(e expr.Expr) bool

func (*TreeParams) CheckExprLog

func (tp *TreeParams) CheckExprLog(e expr.Expr, log *bufio.Writer) bool

func (*TreeParams) CheckExprPrint

func (tp *TreeParams) CheckExprPrint(e expr.Expr) bool

func (*TreeParams) CheckExprTmp

func (tp *TreeParams) CheckExprTmp(e expr.Expr) bool

func (*TreeParams) Clone

func (t *TreeParams) Clone() *TreeParams

func (*TreeParams) ResetCurr

func (tp *TreeParams) ResetCurr()

func (*TreeParams) ResetTemp

func (tp *TreeParams) ResetTemp()

Jump to

Keyboard shortcuts

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