Class: OpenCV::CvGBTreesParams

Inherits:
Object
  • Object
show all
Extended by:
FFI::DataConverter
Defined in:
lib/ropencv/ropencv_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


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

.nullObject

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_typeFixnum Also known as: get_loss_function_type

Note:

method wrapper for int loss_function_type

Returns:

  • (Fixnum)


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

Parameters:

  • value (Fixnum)

Returns:

  • (Void)


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

#shrinkageFloat Also known as: get_shrinkage

Note:

method wrapper for float shrinkage

Returns:

  • (Float)


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

Parameters:

  • value (Float)

Returns:

  • (Void)


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_portionFloat Also known as: get_subsample_portion

Note:

method wrapper for float subsample_portion

Returns:

  • (Float)


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

Parameters:

  • value (Float)

Returns:

  • (Void)


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_sObject

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_countFixnum Also known as: get_weak_count

Note:

method wrapper for int weak_count

methods

Returns:

  • (Fixnum)


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

Parameters:

  • value (Fixnum)

Returns:

  • (Void)


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