Class: Statsample::Factor::Varimax

Inherits:
Rotation 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, #use_gsl

Instance Method Summary collapse

Methods inherited from Rotation

#compute, #initialize, #iterate, #report_building

Methods included from Summarizable

#summary

Constructor Details

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

Instance Method Details

#rotation_nameObject



169
170
171
# File 'lib/statsample/factor/rotation.rb', line 169

def rotation_name
  "Varimax"
end

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



163
164
165
# File 'lib/statsample/factor/rotation.rb', line 163

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

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



166
167
168
# File 'lib/statsample/factor/rotation.rb', line 166

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