data.frame.phase.time {mapfit} | R Documentation |
Create data for phase with weighted sample
Description
Provide a data.frame with weighted samples.
Usage
data.frame.phase.time(x, weights)
Arguments
x |
A vector of point (quantiles) |
weights |
A vector of weights |
Value
A dataframe
Note
The point time is sorted and their differences are stored as the column of time
Examples
x <- runif(10)
w <- runif(10)
dat <- data.frame.phase.time(x=x, weights=w)
print(dat)
mean(dat)
[Package mapfit version 1.0.0 Index]