Find Jobs
Hire Freelancers

PHP function to calculate results

$10-30 USD

Completed
Posted about 8 years ago

$10-30 USD

Paid on delivery
Please create a php function that returns an array with the X% value for the lowest and the X% value from the highest value for each month and day. The data is in the format: id,year,month,day,element,value. Discard any value that is not numeric from your calculation, ex - -6T. See attached csv file for data to test against (93051 lines). Be willing to demonstrate results on your server before final payment by including a textarea field where I can drop data into (see format below and in the attached csv file). I will want to test against a small sample size, less than 100 rows of data. function X_value ($data, $element, $percent) { // do something } $results = X_value($data, "TMIN", 90); print_r($results); [USC00101017] => Array ( [01] => Array ( [1] => Array ( [TMIN] => Array ( [90] => Array ( [min] => -6 [max] => 72 ) ) ) [2] => Array ( [TMIN] => Array ( [90] => Array ( [min] => // some number [max] => // some number ) ) ) ... ) [02] => Array ( [1] => Array ( [TMIN] => Array ( [90] => Array ( [min] => // some number [max] => // some number ) ) ) [2] => Array ( [TMIN] => Array ( [90] => Array ( [min] => // some number [max] => // some number ) ) ) ... ) ... ) ex - 90% (min) for TMIN for May 1 is -22, 90% (max) for TMIN for May 1 is 72 USC00101017,2013,05,1,TMIN,-56 USC00101017,2008,05,1,TMIN,-33 USC00101017,2011,05,1,TMIN,-22 << 90% (min) USC00101017,1997,05,1,TMIN,-6 USC00101017,2010,05,1,TMIN,-6 USC00101017,2009,05,1,TMIN,0 USC00101017,2001,05,1,TMIN,6 USC00101017,2012,05,1,TMIN,17 USC00101017,2003,05,1,TMIN,28 USC00101017,2006,05,1,TMIN,28 USC00101017,2015,05,1,TMIN,28 USC00101017,2016,05,1,TMIN,28 USC00101017,2002,05,1,TMIN,44 USC00101017,2005,05,1,TMIN,44 USC00101017,1999,05,1,TMIN,56 USC00101017,2004,05,1,TMIN,56 USC00101017,2014,05,1,TMIN,56 USC00101017,2000,05,1,TMIN,72 << 90% (max) USC00101017,2007,05,1,TMIN,83 USC00101017,1998,05,1,TMIN,94 In your proposal here or through private message, let me know how you will handle calculating the 90% level when there are 5 values to work with, ex - 1,3,7,7,13 ... what value would you use for the 90% min and max?
Project ID: 10545468

About the project

6 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
hello dear client, the algortim for selection of the moth and day and percentage appear to be quite simple, in fact i already have it. if the algoritm of the calculation that i designed is right, the response for your question is 3 and 7, i've made all the calculations it ocurred to me and it seems the key lies on the values that are not repeated and its the 90% the number of values to count when selecting the min or the max. hope to here your response
$23 USD in 0 day
5.0 (5 reviews)
6.2
6.2
6 freelancers are bidding on average $27 USD for this job
User Avatar
$results = X_value($data, "TMIN", 90); can you please tell me. what exactly you will pass as $data? i need to know plz.
$25 USD in 1 day
5.0 (85 reviews)
7.2
7.2
User Avatar
Hello there !! I have read your requirements for the task and i'm interested in your project . If you want to discuss further about the requirement in more details it would be really helpful for me to understand. In the meantime i can show you some of my projects too.Thanks.
$35 USD in 0 day
5.0 (96 reviews)
6.5
6.5
User Avatar
Hello, I can start right away and I can make it quick and will show you result within an hour. Waiting to chat with you, Thanks :)
$30 USD in 1 day
4.9 (83 reviews)
6.2
6.2

About the client

Flag of UNITED STATES
Boise, United States
5.0
27
Member since Dec 5, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.