Sha256: c7574a8f9e5b44d1edb167fbc0487dee200e50e4e438a0314547d078eab8fa27
Contents?: true
Size: 912 Bytes
Versions: 1
Compression:
Stored size: 912 Bytes
Contents
module Stamina class Command # # Scores the labelling of a sample by an automaton # # SYNOPSIS # #{program_name} #{command_name} sample.adl automaton.adl # # OPTIONS # #{summarized_options} # class Score < Quickl::Command(__FILE__, __LINE__) include Robustness # Install options options do |opt| end # options # Command execution def execute(args) raise Quickl::Help unless args.size == 2 sample = Stamina::ADL::parse_sample_file assert_readable_file(args.first) automaton = Stamina::ADL::parse_automaton_file assert_readable_file(args.last) classified_as = automaton.signature(sample) reference = sample.signature scoring = Scoring.scoring(classified_as, reference) puts scoring.to_s end end # class Score end # class Command end # module Stamina
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stamina-0.4.0 | lib/stamina/command/score.rb |