Class: OpenCV::CvDTreeParams
- Inherits:
-
Object
- Object
- OpenCV::CvDTreeParams
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ruby/ropencv/ropencv_types.rb
Instance Attribute Summary collapse
- #__obj_ptr__ ⇒ Object readonly private
Class Method Summary collapse
-
.from_native(ptr, context) ⇒ Object
private
can be overwritten by the user.
- .new(*args) ⇒ Object
- .rbind_from_native(ptr, context) ⇒ Object private
- .rbind_to_native(obj, context) ⇒ Object private
-
.to_native(obj, context) ⇒ Object
private
can be overwritten by the user.
Instance Method Summary collapse
-
#__owner__? ⇒ Boolean
private
returns true if the underlying pointer is owner of the real object.
-
#cv_folds ⇒ Object
wrapper for int cv_folds.
-
#cv_folds=(value) ⇒ Object
wrapper for int cv_folds.
-
#initialize(ptr) ⇒ CvDTreeParams
constructor
private
A new instance of CvDTreeParams.
-
#max_categories ⇒ Object
methods wrapper for int max_categories.
-
#max_categories=(value) ⇒ Object
wrapper for int max_categories.
-
#max_depth ⇒ Object
wrapper for int max_depth.
-
#max_depth=(value) ⇒ Object
wrapper for int max_depth.
-
#min_sample_count ⇒ Object
wrapper for int min_sample_count.
-
#min_sample_count=(value) ⇒ Object
wrapper for int min_sample_count.
-
#regression_accuracy ⇒ Object
wrapper for float regression_accuracy.
-
#regression_accuracy=(value) ⇒ Object
wrapper for float regression_accuracy.
-
#truncate_pruned_tree ⇒ Object
wrapper for bool truncate_pruned_tree.
-
#truncate_pruned_tree=(value) ⇒ Object
wrapper for bool truncate_pruned_tree.
-
#use__1se_rule ⇒ Object
wrapper for bool use_1se_rule.
-
#use__1se_rule=(value) ⇒ Object
wrapper for bool use_1se_rule.
-
#use_surrogates ⇒ Object
wrapper for bool use_surrogates.
-
#use_surrogates=(value) ⇒ Object
wrapper for bool use_surrogates.
Constructor Details
#initialize(ptr) ⇒ CvDTreeParams
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CvDTreeParams.
20396 20397 20398 20399 20400 20401 20402 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20396 def initialize(ptr) @__obj_ptr__ = if ptr.is_a? CvDTreeParamsStruct ptr else CvDTreeParamsStruct.new(FFI::AutoPointer.new(ptr,CvDTreeParamsStruct.method(:release))) end end |
Instance Attribute Details
#__obj_ptr__ ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20393 20394 20395 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20393 def __obj_ptr__ @__obj_ptr__ end |
Class Method Details
.from_native(ptr, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
can be overwritten by the user
20388 20389 20390 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20388 def self.from_native(ptr,context) rbind_from_native(ptr,context) end |
.new(*args) ⇒ Object
20357 20358 20359 20360 20361 20362 20363 20364 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20357 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CvDTreeParamsStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.rbind_from_native(ptr, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20376 20377 20378 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20376 def self.rbind_from_native(ptr,context) CvDTreeParams.new(ptr) end |
.rbind_to_native(obj, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20367 20368 20369 20370 20371 20372 20373 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20367 def self.rbind_to_native(obj,context) if obj.is_a? CvDTreeParams obj.__obj_ptr__ else raise TypeError, "expected kind of #{name}, was #{obj.class}" end end |
.to_native(obj, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
can be overwritten by the user
20382 20383 20384 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20382 def self.to_native(obj,context) rbind_to_native(obj,context) end |
Instance Method Details
#__owner__? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
returns true if the underlying pointer is owner of the real object
20407 20408 20409 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20407 def __owner__? @__obj_ptr__[:bowner] end |
#cv_folds ⇒ Object
wrapper for int cv_folds
20451 20452 20453 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20451 def cv_folds() Rbind::cvd_tree_params_get_cv_folds( self) end |
#cv_folds=(value) ⇒ Object
wrapper for int cv_folds
20456 20457 20458 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20456 def cv_folds=(value) Rbind::cvd_tree_params_set_cv_folds( self, value) end |
#max_categories ⇒ Object
methods wrapper for int max_categories
20421 20422 20423 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20421 def max_categories() Rbind::cvd_tree_params_get_max_categories( self) end |
#max_categories=(value) ⇒ Object
wrapper for int max_categories
20426 20427 20428 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20426 def max_categories=(value) Rbind::cvd_tree_params_set_max_categories( self, value) end |
#max_depth ⇒ Object
wrapper for int max_depth
20431 20432 20433 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20431 def max_depth() Rbind::cvd_tree_params_get_max_depth( self) end |
#max_depth=(value) ⇒ Object
wrapper for int max_depth
20436 20437 20438 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20436 def max_depth=(value) Rbind::cvd_tree_params_set_max_depth( self, value) end |
#min_sample_count ⇒ Object
wrapper for int min_sample_count
20441 20442 20443 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20441 def min_sample_count() Rbind::cvd_tree_params_get_min_sample_count( self) end |
#min_sample_count=(value) ⇒ Object
wrapper for int min_sample_count
20446 20447 20448 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20446 def min_sample_count=(value) Rbind::cvd_tree_params_set_min_sample_count( self, value) end |
#regression_accuracy ⇒ Object
wrapper for float regression_accuracy
20491 20492 20493 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20491 def regression_accuracy() Rbind::cvd_tree_params_get_regression_accuracy( self) end |
#regression_accuracy=(value) ⇒ Object
wrapper for float regression_accuracy
20496 20497 20498 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20496 def regression_accuracy=(value) Rbind::cvd_tree_params_set_regression_accuracy( self, value) end |
#truncate_pruned_tree ⇒ Object
wrapper for bool truncate_pruned_tree
20481 20482 20483 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20481 def truncate_pruned_tree() Rbind::cvd_tree_params_get_truncate_pruned_tree( self) end |
#truncate_pruned_tree=(value) ⇒ Object
wrapper for bool truncate_pruned_tree
20486 20487 20488 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20486 def truncate_pruned_tree=(value) Rbind::cvd_tree_params_set_truncate_pruned_tree( self, value) end |
#use__1se_rule ⇒ Object
wrapper for bool use_1se_rule
20471 20472 20473 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20471 def use__1se_rule() Rbind::cvd_tree_params_get_use__1se_rule( self) end |
#use__1se_rule=(value) ⇒ Object
wrapper for bool use_1se_rule
20476 20477 20478 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20476 def use__1se_rule=(value) Rbind::cvd_tree_params_set_use__1se_rule( self, value) end |
#use_surrogates ⇒ Object
wrapper for bool use_surrogates
20461 20462 20463 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20461 def use_surrogates() Rbind::cvd_tree_params_get_use_surrogates( self) end |
#use_surrogates=(value) ⇒ Object
wrapper for bool use_surrogates
20466 20467 20468 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20466 def use_surrogates=(value) Rbind::cvd_tree_params_set_use_surrogates( self, value) end |