Question: help please! what am i missing? Normalize N data values xi,1iN to a range of 0 to 1 : The normalized data value is yi=maxiximinixiximinixi

help please! what am i missing?
help please! what am i missing? Normalize N data values xi,1iN to

Normalize N data values xi,1iN to a range of 0 to 1 : The normalized data value is yi=maxiximinixiximinixi i.e, from each data value subtract the minimum of all data and divide by the full range of data values (the maximum minus the minimum). Write a program that first gets a list of floating point numbers from input. The input begins with an integer (N) indicating the number of numbers that follow. Then input all data values xi and store them in a list. Then linearly normalize all entries in the list to a number between 0 and 1 , where 0 corresponds to the smallest and 1 to the largest number(s), as shown above for yi. If the input is: then the output should be 0.1250.00.06251.0 Store the normalized data in a list normalized_data. 17.4.1: Data normalization 0/25 main.py Load default tompl 1 \#add your solution below 2 * 3 \# Make sure that you store your normalized data values yi in a variable 4 \#named normalized_data 5n - int(input()) 6 normal ize_data :1 7 for i in range (n) : normalize_data.append(float(input())) 9 min_xi- min(normalize_data) 10 max_xi- max(normalize_data) 11 for i in range (n) : 12 normalized_data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To resolve the issue in your program follow these steps to correctly implement the normalization pro... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!