Class: Linear::DirectVariation

Inherits:
SlopeIntercept show all
Defined in:
lib/linear/direct_variation.rb

Instance Attribute Summary

Attributes inherited from Function

#power, #slope, #y_intercept

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SlopeIntercept

#to_s, #to_standard

Methods inherited from Function

#direct_variation?, #execute, #to_direct_variation, #to_s, #to_slope_intercept, #x_intercept

Constructor Details

#initialize(k = 1) ⇒ DirectVariation

Returns a new instance of DirectVariation


8
9
10
# File 'lib/linear/direct_variation.rb', line 8

def initialize k=1
	super k, 0
end

Class Method Details

.find(index1, array = ARGV) ⇒ Object

TODO:

Parameters:

  • index1 (Fixnum)

    the index of the first argument

  • array (Array<String>) (defaults to: ARGV)

    the array to be analyzed


7
# File 'lib/linear/direct_variation.rb', line 7

def self.find(index1, array=ARGV); end