class FlexStationData::Sample

Attributes

label[R]
plate[R]
wells[R]

Public Class Methods

new(label, wells, plate) click to toggle source
# File lib/flex_station_data/sample.rb, line 13
def initialize(label, wells, plate)
  @label = label
  @wells = wells
  @plate = plate
end

Public Instance Methods

mean() click to toggle source
# File lib/flex_station_data/sample.rb, line 27
def mean
  @mean ||= values.transpose.map(&ComputeMean)
end
readings() click to toggle source
# File lib/flex_station_data/sample.rb, line 23
def readings
  @readings ||= wells.zip(values).map { |well, v| Readings.new(well, v) }
end
values() click to toggle source
# File lib/flex_station_data/sample.rb, line 19
def values
  wells.map(&plate_wells.method(:values))
end