lib/analysis_sr_stage_mixin.rb
def resolutions_f_pattern_decision(stage)
    cds = @rs.cd_id_by_stage(stage)
    rpc = resolution_by_cd(stage)
    dpc = decisions_by_cd(stage)
    cds.inject({}) {|ac, cd_id|
      patron = dpc[cd_id]
      ac[patron] ||= {"yes" => 0, "no" => 0, Resolution::NO_RESOLUTION => 0}
      ac[patron][rpc[cd_id]] += 1
      ac
    }
  end
# provides a hash, with keys containing the users decisions and values
# with the pattern for resolutions
provides a hash, with keys containing the users decisions and values
with the pattern for resolutions
provides a hash with keys containing the users decisions and values with the pattern for resolutions
def resolutions_f_pattern_decision(stage)
    cds = @rs.cd_id_by_stage(stage)
    rpc = resolution_by_cd(stage)
    dpc = decisions_by_cd(stage)
    cds.inject({}) {|ac, cd_id|
      patron = dpc[cd_id]
      ac[patron] ||= {"yes" => 0, "no" => 0, Resolution::NO_RESOLUTION => 0}
      ac[patron][rpc[cd_id]] += 1
      ac
    }
  end
def resolutions_f_pattern_decision ( stage ) cds = @rs . cd_id_by_stage ( stage ) rpc = resolution_by_cd ( stage ) dpc = decisions_by_cd ( stage ) cds . inject ( { } ) { | ac , cd_id | patron = dpc [ cd_id ] ac [ patron ] ||= { "yes" => 0 , "no" => 0 , Resolution :: NO_RESOLUTION => 0 } ac [ patron ] [ rpc [ cd_id ] ] += 1 ac } end
provides a hash, with keys containing the users decisions and values
with the pattern for resolutions
provides a hash with keys containing the users decisions and values with the pattern for resolutions
stage