Top Level Namespace

Defined Under Namespace

Classes: AreaChart, BarChart, BlandAltman, BoxPlot, FunctionPlot, Histogram, LineChart, PieChart, QqPlot, ScatterPlot, TimeChart, TracePlot, XyPlot

Instance Method Summary collapse

Instance Method Details

#check_grp(grp) ⇒ Object



26
27
28
29
30
31
32
33
# File 'lib/bio-incanter.rb', line 26

def check_grp(grp)
	grp.each{ |item|
		if item.class!= String 
			raise "Error : Vector of class must be String"
		end
	}
	return grp
end

#check_val(value) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/bio-incanter.rb', line 35

def check_val(value)
	value.each {|item|
                if item.class!= Float
                        raise "Error : Vector of point  must be Double"
                end     
        }
	return value
end

#check_val_int(value) ⇒ Object



45
46
47
48
49
50
51
52
# File 'lib/bio-incanter.rb', line 45

def check_val_int(value)
        value.each {|item|
                if item.class!= Fixnum
                        raise "Error : Vector of point  must be Integer"
                end     
        }
        return value
end