bench: add NewfuncParams()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cb48a6dd56
commit
5282cdc797
@ -52,6 +52,12 @@ func (f *funcParams) Max() float64 {
|
|||||||
return f.max
|
return f.max
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewfuncParams returns a pointer to a fresh instance of funcParams.
|
||||||
|
// nolint: revive
|
||||||
|
func NewfuncParams(min, max float64) *funcParams {
|
||||||
|
return &funcParams{min: min, max: max}
|
||||||
|
}
|
||||||
|
|
||||||
// GetGAMaxFES calculates the value of MaxFES for Genetic Algorithms. This is
|
// GetGAMaxFES calculates the value of MaxFES for Genetic Algorithms. This is
|
||||||
// an arbitrary specification where MaxFES is 5000xD.
|
// an arbitrary specification where MaxFES is 5000xD.
|
||||||
func GetGAMaxFES(dim int) int {
|
func GetGAMaxFES(dim int) int {
|
||||||
|
Loading…
Reference in New Issue
Block a user