Sha256: f46b9bd5c97902fbea584a3c94f6057a4c49a08863c9716ddd4387d6d6a30821
Contents?: true
Size: 650 Bytes
Versions: 3
Compression:
Stored size: 650 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom')) =begin A DataNode is a node generated from data itself. It stores the data and reveals some statistical measurements for the data. It expects an array or vector of values and generates a vector on demans. =end class Fathom::DataNode < Fathom::Node include NumericMethods def initialize(opts={}) super(opts) raise ArgumentError, "Must provided values: DataNode.new(:values => [...])" unless self.values end end if __FILE__ == $0 include Fathom # TODO: Is there anything you want to do to run this file on its own? # DataNode.new end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fathom-0.3.6 | lib/fathom/node/data_node.rb |
fathom-0.3.4 | lib/fathom/node/data_node.rb |
fathom-0.3.3 | lib/fathom/node/data_node.rb |