replace Method
Replace an existing classifier with a different one.
replace(toReplace: SpatialClassifier, replacement: SpatialClassifier): boolean
note If toReplace was the SpatialClassifiers.active classifier, replacement will become active.
| Parameter | Type | Description |
|---|---|---|
| toReplace | SpatialClassifier | The classifier to be replaced. |
| replacement | SpatialClassifier | The classifier to replace toReplace. |
Returns - boolean
true if a classifier equivalent to toReplace existed in the set and was replaced by replacement.
Defined in
Last Updated: 30 November, 2023