Included Modules

Class/Module Index [+]

Quicksearch

Statsample::NamedMatrix

Module to add names to X and Y fields

Public Instance Methods

fields() click to toggle source
# File lib/statsample/matrix.rb, line 163
def fields
raise "Should be square" if !square?
fields_x
end
fields=(v) click to toggle source
# File lib/statsample/matrix.rb, line 167
def fields=(v)
raise "Matrix should be square" if !square?
@fields_x=v
@fields_y=v
end
fields_x() click to toggle source
# File lib/statsample/matrix.rb, line 180
def fields_x
@fields_x||=row_size.times.collect {|i| _("X%d") % i} 
end
fields_x=(v) click to toggle source
# File lib/statsample/matrix.rb, line 172
def fields_x=(v)
raise "Size of fields != row_size" if v.size!=row_size
@fields_x=v
end
fields_y() click to toggle source
# File lib/statsample/matrix.rb, line 183
def fields_y
@fields_y||=column_size.times.collect {|i| _("Y%d") % i} 
end
fields_y=(v) click to toggle source
# File lib/statsample/matrix.rb, line 176
def fields_y=(v)
raise "Size of fields != column_size" if v.size!=column_size
@fields_y=v
end
get_new_name() click to toggle source
# File lib/statsample/matrix.rb, line 193
def get_new_name
  @@named_matrix||=0
  @@named_matrix+=1
  _("Matrix %d") % @@named_matrix
end
name() click to toggle source
# File lib/statsample/matrix.rb, line 187
def name
  @name||=get_new_name
end
name=(v) click to toggle source
# File lib/statsample/matrix.rb, line 190
def name=(v)
  @name=v
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.