Class: Linear::DirectVariation

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SlopeIntercept

#to_s, #to_standard

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