Learn R Programming

bivariate (version 0.3.0)

bimodal: Bimodal Distributions

Description

Bimodal distributions. Refer to the vignette for better examples.

Usage

bmbvpdf (mean.X1, mean.Y1, variance.X1, variance.Y1,
    mean.X2, mean.Y2, variance.X2, variance.Y2,
    w=0.5)
bmbvcdf (mean.X1, mean.Y1, variance.X1, variance.Y1,
    mean.X2, mean.Y2, variance.X2, variance.Y2,
    w=0.5)

Arguments

mean.X1

Numeric scalar, giving the mean of the first X component.

mean.Y1

Numeric scalar, giving the mean of the first Y component.

variance.X1

Numeric scalar, giving the variance of the first X component.

variance.Y1

Numeric scalar, giving the variance of the first Y component.

mean.X2

Numeric scalar, giving the mean of the second X component.

mean.Y2

Numeric scalar, giving the mean of the second Y component.

variance.X2

Numeric scalar, giving the variance of the second X component.

variance.Y2

Numeric scalar, giving the variance of the second Y component.

w

Numeric scalar in the interval (0, 1), giving the weight of the first component.

Value

These functions return functions.

See Also

bmbvpdf.f, bmbvcdf.f

Examples

Run this code
# NOT RUN {
#construct some bimodal distributions
bmbvpdf.f = bmbvpdf (3.5, 0, 1, 1, 6.5, 0, 1, 1)
bmbvcdf.f = bmbvcdf (3.5, 0, 1, 1, 6.5, 0, 1, 1)
# }

Run the code above in your browser using DataLab