Lines Matching refs:spec_val
40 int add_distribution_data(spect_dist_info *spec, int spec_val) in add_distribution_data() argument
46 if (spec_val < spec->low_entry) spec->low_counts += UNIT_SIZE; in add_distribution_data()
47 else if (spec_val > spec->high_entry) spec->high_counts += UNIT_SIZE; in add_distribution_data()
48 else spec->hist[spec_val - spec->low_entry] += UNIT_SIZE; in add_distribution_data()
54 spec->running_total += spec_val - spec->mean; in add_distribution_data()
55 spec->running_total_devn += (spec_val - spec->mean) in add_distribution_data()
56 * (spec_val - spec->mean); in add_distribution_data()
58 spec->running_total += spec_val; in add_distribution_data()
59 spec->running_total_devn += spec_val * spec_val; in add_distribution_data()
199 int median_normalize_data(spect_dist_info *spec, int spec_val) in median_normalize_data() argument
201 return (spec_val - spec->median + spec->offset); in median_normalize_data()
204 int sv6_normalize_data(spect_dist_info *spec, int spec_val) in sv6_normalize_data() argument
206 return (spec_val - spec->sv6 + spec->offset); in sv6_normalize_data()
210 int mean_normalize_data(spect_dist_info *spec, int spec_val) in mean_normalize_data() argument
212 return (spec_val - spec->mean + spec->offset); in mean_normalize_data()