Class: OpenCV::CvANNMLPTrainParams
- Inherits:
-
Object
- Object
- OpenCV::CvANNMLPTrainParams
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ruby/ropencv/ropencv_types.rb
Constants collapse
- BACKPROP =
0
- RPROP =
1
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.
-
#bp_dw_scale ⇒ Object
wrapper for double bp_dw_scale.
-
#bp_dw_scale=(value) ⇒ Object
wrapper for double bp_dw_scale.
-
#bp_moment_scale ⇒ Object
wrapper for double bp_moment_scale.
-
#bp_moment_scale=(value) ⇒ Object
wrapper for double bp_moment_scale.
-
#initialize(ptr) ⇒ CvANNMLPTrainParams
constructor
private
A new instance of CvANNMLPTrainParams.
-
#rp_dw0 ⇒ Object
wrapper for double rp_dw0.
-
#rp_dw0=(value) ⇒ Object
wrapper for double rp_dw0.
-
#rp_dw_max ⇒ Object
wrapper for double rp_dw_max.
-
#rp_dw_max=(value) ⇒ Object
wrapper for double rp_dw_max.
-
#rp_dw_min ⇒ Object
wrapper for double rp_dw_min.
-
#rp_dw_min=(value) ⇒ Object
wrapper for double rp_dw_min.
-
#rp_dw_minus ⇒ Object
wrapper for double rp_dw_minus.
-
#rp_dw_minus=(value) ⇒ Object
wrapper for double rp_dw_minus.
-
#rp_dw_plus ⇒ Object
wrapper for double rp_dw_plus.
-
#rp_dw_plus=(value) ⇒ Object
wrapper for double rp_dw_plus.
-
#term_crit ⇒ Object
methods wrapper for CvTermCriteria term_crit.
-
#term_crit=(value) ⇒ Object
wrapper for CvTermCriteria term_crit.
-
#train_method ⇒ Object
wrapper for int train_method.
-
#train_method=(value) ⇒ Object
wrapper for int train_method.
Constructor Details
#initialize(ptr) ⇒ CvANNMLPTrainParams
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 CvANNMLPTrainParams.
21655 21656 21657 21658 21659 21660 21661 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21655 def initialize(ptr) @__obj_ptr__ = if ptr.is_a? CvANNMLPTrainParamsStruct ptr else CvANNMLPTrainParamsStruct.new(FFI::AutoPointer.new(ptr,CvANNMLPTrainParamsStruct.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.
21652 21653 21654 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21652 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
21647 21648 21649 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21647 def self.from_native(ptr,context) rbind_from_native(ptr,context) end |
.new(*args) ⇒ Object
21616 21617 21618 21619 21620 21621 21622 21623 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21616 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CvANNMLPTrainParamsStruct) 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.
21635 21636 21637 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21635 def self.rbind_from_native(ptr,context) CvANNMLPTrainParams.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.
21626 21627 21628 21629 21630 21631 21632 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21626 def self.rbind_to_native(obj,context) if obj.is_a? CvANNMLPTrainParams 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
21641 21642 21643 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21641 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
21666 21667 21668 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21666 def __owner__? @__obj_ptr__[:bowner] end |
#bp_dw_scale ⇒ Object
wrapper for double bp_dw_scale
21705 21706 21707 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21705 def bp_dw_scale() Rbind::cvann_mlp_train_params_get_bp_dw_scale( self) end |
#bp_dw_scale=(value) ⇒ Object
wrapper for double bp_dw_scale
21710 21711 21712 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21710 def bp_dw_scale=(value) Rbind::cvann_mlp_train_params_set_bp_dw_scale( self, value) end |
#bp_moment_scale ⇒ Object
wrapper for double bp_moment_scale
21715 21716 21717 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21715 def bp_moment_scale() Rbind::cvann_mlp_train_params_get_bp_moment_scale( self) end |
#bp_moment_scale=(value) ⇒ Object
wrapper for double bp_moment_scale
21720 21721 21722 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21720 def bp_moment_scale=(value) Rbind::cvann_mlp_train_params_set_bp_moment_scale( self, value) end |
#rp_dw0 ⇒ Object
wrapper for double rp_dw0
21725 21726 21727 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21725 def rp_dw0() Rbind::cvann_mlp_train_params_get_rp_dw0( self) end |
#rp_dw0=(value) ⇒ Object
wrapper for double rp_dw0
21730 21731 21732 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21730 def rp_dw0=(value) Rbind::cvann_mlp_train_params_set_rp_dw0( self, value) end |
#rp_dw_max ⇒ Object
wrapper for double rp_dw_max
21765 21766 21767 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21765 def rp_dw_max() Rbind::cvann_mlp_train_params_get_rp_dw_max( self) end |
#rp_dw_max=(value) ⇒ Object
wrapper for double rp_dw_max
21770 21771 21772 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21770 def rp_dw_max=(value) Rbind::cvann_mlp_train_params_set_rp_dw_max( self, value) end |
#rp_dw_min ⇒ Object
wrapper for double rp_dw_min
21755 21756 21757 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21755 def rp_dw_min() Rbind::cvann_mlp_train_params_get_rp_dw_min( self) end |
#rp_dw_min=(value) ⇒ Object
wrapper for double rp_dw_min
21760 21761 21762 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21760 def rp_dw_min=(value) Rbind::cvann_mlp_train_params_set_rp_dw_min( self, value) end |
#rp_dw_minus ⇒ Object
wrapper for double rp_dw_minus
21745 21746 21747 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21745 def rp_dw_minus() Rbind::cvann_mlp_train_params_get_rp_dw_minus( self) end |
#rp_dw_minus=(value) ⇒ Object
wrapper for double rp_dw_minus
21750 21751 21752 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21750 def rp_dw_minus=(value) Rbind::cvann_mlp_train_params_set_rp_dw_minus( self, value) end |
#rp_dw_plus ⇒ Object
wrapper for double rp_dw_plus
21735 21736 21737 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21735 def rp_dw_plus() Rbind::cvann_mlp_train_params_get_rp_dw_plus( self) end |
#rp_dw_plus=(value) ⇒ Object
wrapper for double rp_dw_plus
21740 21741 21742 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21740 def rp_dw_plus=(value) Rbind::cvann_mlp_train_params_set_rp_dw_plus( self, value) end |
#term_crit ⇒ Object
methods wrapper for CvTermCriteria term_crit
21682 21683 21684 21685 21686 21687 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21682 def term_crit() result = Rbind::cvann_mlp_train_params_get_term_crit( self) # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) if !result.__owner__? result end |
#term_crit=(value) ⇒ Object
wrapper for CvTermCriteria term_crit
21690 21691 21692 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21690 def term_crit=(value) Rbind::cvann_mlp_train_params_set_term_crit( self, value) end |
#train_method ⇒ Object
wrapper for int train_method
21695 21696 21697 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21695 def train_method() Rbind::cvann_mlp_train_params_get_train_method( self) end |
#train_method=(value) ⇒ Object
wrapper for int train_method
21700 21701 21702 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21700 def train_method=(value) Rbind::cvann_mlp_train_params_set_train_method( self, value) end |