test.result-class {pso} | R Documentation |
Class "test.result"
Description
A container class with results from executing a (repetition of) test problem(s).
Objects from the Class
Objects can be created by calls of the form new("test.result",
...)
, but the object is normally provided as the result of executing
psoptim
on an object of class "test.problem"
.
Slots
problem
:Object of class
"test.problem"
.result
:A list with each of the results from repetitive invocation of
psoptim
onproblem
.time
:The overall time taken for executing the test. Object of class
"numeric"
.
Methods
- getSuccessRate
signature(object = "test.result")
: internal method used to calculate the success rate for a series of test results. SeegetSuccessRate-methods
for details.- lines
signature(x = "test.result")
: add lines with the test result to an existing plot. Seelines-methods
for details.- plot
signature(x = "test.result", y = "missing")
: plot the test result. Seeplot-methods
for details.- points
signature(x = "test.result")
: add points with the test result to an existing plot. Seepoints-methods
for details.- show
signature(object = "test.result")
: summary statistics of the test. Seeshow-methods
for details.
Examples
showClass("test.result")
set.seed(1)
t <- test.problem("rastrigin",10)
o <- psoptim(t)
show(o)
## Not run:
plot(o)
## End(Not run)