| 303 | } |
| 304 | |
| 305 | @Override |
| 306 | public ERTrees clone() |
| 307 | { |
| 308 | ERTrees clone = new ERTrees(); |
| 309 | clone.forrestSize = this.forrestSize; |
| 310 | clone.useDefaultSelectionCount = this.useDefaultSelectionCount; |
| 311 | clone.useDefaultStopSize = this.useDefaultStopSize; |
| 312 | clone.baseTree = this.baseTree.clone(); |
| 313 | if(this.predicting != null) |
| 314 | clone.predicting = this.predicting.clone(); |
| 315 | if (this.forrest != null) |
| 316 | { |
| 317 | clone.forrest = new ExtraTree[this.forrest.length]; |
| 318 | for (int i = 0; i < this.forrest.length; i++) |
| 319 | clone.forrest[i] = this.forrest[i].clone(); |
| 320 | } |
| 321 | |
| 322 | return clone; |
| 323 | } |
| 324 | |
| 325 | @Override |
| 326 | public TreeNodeVisitor getTreeNodeVisitor() |