Class: OpenCV::CvGBTreesParams
- Inherits:
-
Object
- Object
- OpenCV::CvGBTreesParams
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #loss_function_type ⇒ Fixnum (also: #get_loss_function_type)
- #loss_function_type=(value) ⇒ Void (also: #set_loss_function_type)
- #shrinkage ⇒ Float (also: #get_shrinkage)
- #shrinkage=(value) ⇒ Void (also: #set_shrinkage)
- #subsample_portion ⇒ Float (also: #get_subsample_portion)
- #subsample_portion=(value) ⇒ Void (also: #set_subsample_portion)
-
#to_s ⇒ Object
converts CvGBTreesParams into a string by crawling through all its attributes.
-
#weak_count ⇒ Fixnum
(also: #get_weak_count)
methods.
- #weak_count=(value) ⇒ Void (also: #set_weak_count)
Class Method Details
.new(*args) ⇒ Object
44679 44680 44681 44682 44683 44684 44685 44686 |
# File 'lib/ropencv/ropencv_types.rb', line 44679 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CvGBTreesParamsStruct) 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 |
.null ⇒ Object
returns a null pointer to the object
44675 44676 44677 |
# File 'lib/ropencv/ropencv_types.rb', line 44675 def self.null new(CvGBTreesParamsStruct.new) end |
Instance Method Details
#loss_function_type ⇒ Fixnum Also known as: get_loss_function_type
Note:
method wrapper for int loss_function_type
44780 44781 44782 44783 |
# File 'lib/ropencv/ropencv_types.rb', line 44780 def loss_function_type() __validate_pointer__ Rbind::cvgb_trees_params_get_loss_function_type( self) end |
#loss_function_type=(value) ⇒ Void Also known as: set_loss_function_type
Note:
method wrapper for int loss_function_type
44789 44790 44791 44792 |
# File 'lib/ropencv/ropencv_types.rb', line 44789 def loss_function_type=(value) __validate_pointer__ Rbind::cvgb_trees_params_set_loss_function_type( self, value) end |
#shrinkage ⇒ Float Also known as: get_shrinkage
Note:
method wrapper for float shrinkage
44814 44815 44816 44817 |
# File 'lib/ropencv/ropencv_types.rb', line 44814 def shrinkage() __validate_pointer__ Rbind::cvgb_trees_params_get_shrinkage( self) end |
#shrinkage=(value) ⇒ Void Also known as: set_shrinkage
Note:
method wrapper for float shrinkage
44823 44824 44825 44826 |
# File 'lib/ropencv/ropencv_types.rb', line 44823 def shrinkage=(value) __validate_pointer__ Rbind::cvgb_trees_params_set_shrinkage( self, value) end |
#subsample_portion ⇒ Float Also known as: get_subsample_portion
Note:
method wrapper for float subsample_portion
44797 44798 44799 44800 |
# File 'lib/ropencv/ropencv_types.rb', line 44797 def subsample_portion() __validate_pointer__ Rbind::cvgb_trees_params_get_subsample_portion( self) end |
#subsample_portion=(value) ⇒ Void Also known as: set_subsample_portion
Note:
method wrapper for float subsample_portion
44806 44807 44808 44809 |
# File 'lib/ropencv/ropencv_types.rb', line 44806 def subsample_portion=(value) __validate_pointer__ Rbind::cvgb_trees_params_set_subsample_portion( self, value) end |
#to_s ⇒ Object
converts CvGBTreesParams into a string by crawling through all its attributes
44752 44753 44754 |
# File 'lib/ropencv/ropencv_types.rb', line 44752 def to_s "#<CvGBTreesParams weak_count=#{self.weak_count} loss_function_type=#{self.loss_function_type} subsample_portion=#{self.subsample_portion} shrinkage=#{self.shrinkage}>" end |
#weak_count ⇒ Fixnum Also known as: get_weak_count
Note:
method wrapper for int weak_count
methods
44763 44764 44765 44766 |
# File 'lib/ropencv/ropencv_types.rb', line 44763 def weak_count() __validate_pointer__ Rbind::cvgb_trees_params_get_weak_count( self) end |
#weak_count=(value) ⇒ Void Also known as: set_weak_count
Note:
method wrapper for int weak_count
44772 44773 44774 44775 |
# File 'lib/ropencv/ropencv_types.rb', line 44772 def weak_count=(value) __validate_pointer__ Rbind::cvgb_trees_params_set_weak_count( self, value) end |