class Object

Public Instance Methods

check_grp(grp) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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