TermCriteria
Objective-C
@interface TermCriteria : NSObject
Swift
class TermCriteria : NSObject
Class representing termination criteria for iterative algorithms.
-
Declaration
Objective-C
@property(class, readonly) int COUNT
Swift
class var count: Int32 { get }
-
Declaration
Objective-C
@property(class, readonly) int EPS
Swift
class var eps: Int32 { get }
-
Declaration
Objective-C
@property(class, readonly) int MAX_ITER
Swift
class var max_ITER: Int32 { get }
-
Declaration
Objective-C
@property int type
Swift
var type: Int32 { get set }
-
Declaration
Objective-C
@property int maxCount
Swift
var maxCount: Int32 { get set }
-
Declaration
Objective-C
@property double epsilon
Swift
var epsilon: Double { get set }
-
Declaration
Objective-C
- (instancetype)init;
Swift
init()
-
Declaration
Objective-C
- (instancetype)initWithType:(int)type maxCount:(int)maxCount epsilon:(double)epsilon;
Swift
init(type: Int32, maxCount: Int32, epsilon: Double)
-
Declaration
Objective-C
- (instancetype)initWithVals:(NSArray<NSNumber*>*)vals;
Swift
init(vals: [NSNumber])
-
Set the termination criteria values from the values of an array
Declaration
Objective-C
- (void)set:(nonnull NSArray<NSNumber *> *)vals;
Swift
func set(vals: [NSNumber])
Parameters
vals
The array of values from which to set the termination criteria values
-
Clone object
Declaration
Objective-C
- (nonnull TermCriteria *)clone;
Swift
func clone() -> TermCriteria
-
Compare for equality
Declaration
Objective-C
- (BOOL)isEqual:(nullable id)object;
Swift
func isEqual(_ object: Any?) -> Bool
Parameters
other
Object to compare
-
Calculate hash value for this object
Declaration
Objective-C
- (NSUInteger)hash;
Swift
func hash() -> UInt
-
Returns a string that describes the contents of the object
Declaration
Objective-C
- (nonnull NSString *)description;
Swift
func description() -> String