Q7: Three Methods of Probability Distribution

Description Usage Arguments Details Value

View source: R/Q7.R

Description

Depending on which probability distribution method the user wants to use, (0 for Gamma, 1 for Cauchy, 2 for Binomial) the function takes the data and a given interval and Returns the maximum optimized sum of the distribution

Usage

1
Q7(data, funct, interval)

Arguments

data

used, type of distribution, interval

funct

what function the user would like to use with 0,1, and 2 corresponding with gamma cauchy and binomial

interval

the interval across which the optimize function will operate across

Details

for gamma: Q7(x,0,c(0,10)) for Cauchy: Q7(x,1,c(-10,10)) for binomial: Q7(x,2,c(-10,10))

Value

Sum of distribution


JWooll/Homework3 documentation built on March 19, 2018, 4:15 a.m.