Python ratio calculation script

Completed Posted Aug 5, 2015 Paid on delivery
Completed Paid on delivery

I need a python script which would calculate missing numbers based on one model ratio list.

There are 7 numbers in a list. The first list is a model list and has all the values. The second list is a missing list which is missing some values and we need to fill those in based on the ratio from the model list.

The first value in the missing list will always be 0.

model = [0, 11, 40, 99, 123, 137, 127]

missing = [None, -2.0, 25.0, None, 85.0, 93.0, 103.0]

The first value should always be set to 0. So in this case we only need to calculate the forth value.

To calculate it we take the model and calculate which percentage is the number 99 between 40 and 123.

The result in this case would be:

result = [0, -2.0, 25.0, 68.0, 85.0, 93.0, 103.0]

The missing list can eventually have only 1 value (except the first item because we will set it to 0 anyways.) and we need to calculate the rest of them

missing1 = [None, None, None, None, 85.0, None, None]

missing2 = [None, 5, None, None, 72.0, None, None]

missing3 = [None, 5, None, None, 72.0, None, 255.0]

missing4 = [None, -10, None, None, 100.0, 720.0, 521.0]

Let me know of any questions.

Python

Project ID: #8213483

About the project

6 proposals Remote project Active Aug 5, 2015

Awarded to:

SwapnilChouhan

I have read your description . And ready to wright code for it , right now . I just like it. Can you tell me number 99 between 40 and 123 how it is getting calculated? I want to know more about those four lists h More

$30 USD in 1 day
(0 Reviews)
0.0

6 freelancers are bidding on average $111 for this job

aminbros

A proposal has not yet been provided

$84 USD in 1 day
(2 Reviews)
3.3
ziadbinshams

Hello Sir I have gone through your job posting. I can do the task perfectly on time. I am professional in web scraping, python, data mining and all type of database development. I will do the project 100% accurately. More

$368 USD in 4 days
(1 Review)
1.8
codistanpk

Dear Employer, We would love to work on your project. We are a software development company with excel in android, iPhone, windows and application development. We have got a team of finest developers and best designe More

$30 USD in 3 days
(0 Reviews)
0.0
hkfm7410

My offer is to deliver a python script to solve your problem. It would help me if I had more information on how you will use the script, so that I can make it easier to use. The product can be a script that you w More

$100 USD in 2 days
(0 Reviews)
0.0
The24CarrotsInc

A proposal has not yet been provided

$55 USD in 1 day
(0 Reviews)
0.0