Need 8 lines converting from VB to PHP
- or -
Post a project like this2927
$
- Posted:
- Proposals: 4
- Remote
- #1102815
- Awarded
Description
Experience Level: Entry
General information for the website: maths
Description of requirements/features: complete code convert
Extra notes: Need the below converting from vb to php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Function BivPois(homeX As Integer, awayY As Integer, HomeExp As Double, AwayExp As Double, Dep As Double)
BivPois = 0
For i = 0 To Int(WorksheetFunction.Min(homeX, awayY))
BivPois = BivPois + WorksheetFunction.Combin(homeX, i) * WorksheetFunction.Combin(awayY, i) * WorksheetFunction.Fact(i) * (Dep / (HomeExp * AwayExp)) ^ i
Next i
BivPois = BivPois * Exp(-(HomeExp + AwayExp + Dep)) * HomeExp ^ homeX * AwayExp ^ awayY / (WorksheetFunction.Fact(homeX) * WorksheetFunction.Fact(awayY))
End Function
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Description of requirements/features: complete code convert
Extra notes: Need the below converting from vb to php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Function BivPois(homeX As Integer, awayY As Integer, HomeExp As Double, AwayExp As Double, Dep As Double)
BivPois = 0
For i = 0 To Int(WorksheetFunction.Min(homeX, awayY))
BivPois = BivPois + WorksheetFunction.Combin(homeX, i) * WorksheetFunction.Combin(awayY, i) * WorksheetFunction.Fact(i) * (Dep / (HomeExp * AwayExp)) ^ i
Next i
BivPois = BivPois * Exp(-(HomeExp + AwayExp + Dep)) * HomeExp ^ homeX * AwayExp ^ awayY / (WorksheetFunction.Fact(homeX) * WorksheetFunction.Fact(awayY))
End Function
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Jarratt P.
100% (8)Projects Completed
9
Freelancers worked with
9
Projects awarded
59%
Last project
7 Sep 2019
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies