Skip to content

Commit

Permalink
use median insted of mean
Browse files Browse the repository at this point in the history
  • Loading branch information
hiruna72 committed Feb 14, 2024
1 parent fed2b8f commit eab1819
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,11 +851,15 @@ def run(args):

if args.output_current_column:
for key, item in column_raw_samples.items():
# print(', '.join(map(str, item)))
array = np.array(item)
mean = np.mean(array)
darray = array/mean

median = np.median(array)
darray = array/median
print(', '.join(map(str, darray)))
# print(', '.join(map(str, item)))

# darray = plot_utils.scale_signal(array, 'medmad', {})
# print(', '.join(map(str, darray)))

print("Number of records: {}".format(num_plots))
if num_plots == 0:
Expand Down

0 comments on commit eab1819

Please sign in to comment.