Class: Statsample::Factor::Varimax

Inherits:
Rotation
  • Object
show all
Defined in:
lib/statsample/factor/rotation.rb

Constant Summary

Constants inherited from Rotation

Rotation::EPSILON, Rotation::MAX_ITERATIONS

Instance Attribute Summary

Attributes inherited from Rotation

#component_transformation_matrix, #epsilon, #h2, #iterations, #max_iterations, #rotated

Instance Method Summary collapse

Methods inherited from Rotation

#compute, #initialize, #iterate

Constructor Details

This class inherits a constructor from Statsample::Factor::Rotation

Instance Method Details

#x(a, b, c, d) ⇒ Object



120
121
122
# File 'lib/statsample/factor/rotation.rb', line 120

def x(a,b,c,d)
  d-(2*a*b / @n.to_f)
end

#y(a, b, c, d) ⇒ Object



123
124
125
# File 'lib/statsample/factor/rotation.rb', line 123

def y(a,b,c,d)
  c-((a**2-b**2) / @n.to_f)
end