Find Jobs
Hire Freelancers

Coder needed for C++ function implementation

$30-100 USD

Completed
Posted about 12 years ago

$30-100 USD

Paid on delivery
We have an old C++ program that would require a statistical function to be implemented. This would be a part of maximum likelihood estimator program. The function implementation is to be written with C++ and the use of already existing libraries like GSL would be beneficial although not mandatory. The program should run on a Linux server and it ought to be fast since this is the core function of the program. So, optimization is required. ## Deliverables Function definition: Let's assume infinite universe of different colored units. The number of colors is N. We know the proportional frequencies of the different colored units and that information is stored in the vector "freqs". The length of the "freqs" is N and its each element signifies the proportional frequency of certain color among all of the different colored units in the universe. The sum of all elements in the vector "freqs" would be 1. Lets assume we have drawn randomly K amount of units from the universe. The amount of units having different colors are stored in the vector "counts" separated by colors (the colors have the same order as in "freqs"). The length of "counts" is also N and the sum of its elements is K. p_counts = what is the frequency when drawing K units from the universe described by "freqs" you will get different colored units exactly the amount that "counts" depicted. I assume this is best done using multinomial distribution... Is there a function in Gnu Scientific Library for this, could GSL be used? Further ideas and improvements are most welcome. */ double p_counts(std::vector<double> freqs, std::vector<size_t> counts); /* IMPLEMENTATION */ double p_counts(std::vector<double> freqs, std::vector<size_t> counts) { }
Project ID: 2719189

About the project

3 proposals
Remote project
Active 12 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
See private message.
$75.65 USD in 14 days
5.0 (143 reviews)
6.2
6.2
3 freelancers are bidding on average $53 USD for this job
User Avatar
See private message.
$14 USD in 14 days
5.0 (2 reviews)
1.0
1.0
User Avatar
See private message.
$70.55 USD in 14 days
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED KINGDOM
London, United Kingdom
5.0
3
Payment method verified
Member since Mar 7, 2012

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)
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.