Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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?
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions