Class: DataOutput::ScaledDeltaOutput
- Inherits:
 - 
      ScaledOutput
      
        
- Object
 - BaseOutput
 - DatasetOutput
 - ScaledOutput
 - DataOutput::ScaledDeltaOutput
 
 
- Defined in:
 - lib/output/data_output/scaled_delta_output.rb
 
Overview
Child class of DeltaOutput to visualize a data set within the dimensions of the calling terminal.
Instance Attribute Summary
Attributes inherited from ScaledOutput
Attributes inherited from DatasetOutput
Attributes inherited from BaseOutput
#data_set, #legend, #with_extreme_values
Instance Method Summary collapse
- 
  
    
      #initialize(data_set, meta_data, indices, options)  ⇒ ScaledDeltaOutput 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
method to visualize the difference of two datasets.
 - 
  
    
      #print_meta_head  ⇒ Object 
    
    
  
  
  
  
  private
  
  
  
  
    
method to print additional information before the x and y domain informations.
 - 
  
    
      #print_output_head(indices)  ⇒ Object 
    
    
  
  
  
  
  private
  
  
  
  
    
creates a headline before printing the data set with the requested indices.
 
Methods inherited from ScaledOutput
Methods inherited from DatasetOutput
#print_meta_information, #print_meta_tail
Methods inherited from BaseOutput
#determine_output_type_and_print_value, #print_data, #print_data_and_get_extrema, #print_domain_information, #print_extreme_information, #print_extreme_values_for, #print_meta_information, #set_attributes
Constructor Details
#initialize(data_set, meta_data, indices, options) ⇒ ScaledDeltaOutput
method to visualize the difference of two datasets
      19 20 21 22 23 24 25  | 
    
      # File 'lib/output/data_output/scaled_delta_output.rb', line 19 def initialize(data_set, , indices, ) prepare_attributes(data_set, , ) @legend = ColorLegend::ColorDelta.new(@scaled_dataset.min_value, @scaled_dataset.max_value) print_output_head(indices) print_data([:legend], @meta_data.domain_x, @meta_data.domain_y) end  | 
  
Instance Method Details
#print_meta_head ⇒ Object (private)
method to print additional information before the x and y domain informations
      40 41 42 43  | 
    
      # File 'lib/output/data_output/scaled_delta_output.rb', line 40 def puts "\nScaled Dataset: Difference of #{@meta_data.name} between " \ "the two datasets" end  | 
  
#print_output_head(indices) ⇒ Object (private)
creates a headline before printing the data set with the requested indices
      33 34 35 36  | 
    
      # File 'lib/output/data_output/scaled_delta_output.rb', line 33 def print_output_head(indices) puts "Printing autoscaled difference for datasets " \ "#{indices[:first]} and #{indices[:second]}.\n\n" end  |