Displaying 5 results from an estimated 5 matches for "input_paramet".
Did you mean:
input_parameter
Latin Hypercube Sampling when parameters are defined according to specific probability distributions
2017 May 27
2
Latin Hypercube Sampling when parameters are defined according to specific probability distributions
...method for generating the
sample using the lhs library, then I will try using the pse library.
Generally when you have a package specific
question, you should try to contact the package maintainer first.
set.seed(1)
# I don't think your model has only one parameter, so I will include multiple
input_parameters <- c("dispersal_distance", "temperature", "pressure")
N <- 50
exponential_rate <- 1/30
library(lhs)
X <- randomLHS(N, length(input_parameters))
dimnames(X) <- list(NULL, input_parameters)
# X is now a uniformly distributed Latin hypercube
head(X)
his...
Latin Hypercube Sampling when parameters are defined according to specific probability distributions
2017 Jun 01
1
Latin Hypercube Sampling when parameters are defined according to specific probability distributions
...generated by the LHS for all distance classes at the first line of the data frame.
library(pse)
q <- list("qexp", "qunif", "qunif")
q.arg <- list(list(rate=exponential_rate), list(min=0, max=1),
list(min=0, max=1))
uncoupledLHS <- LHS(model=model_function, input_parameters, N, q, q.arg)
hist(uncoupledLHS$data$dispersal_distance, breaks=10)
tabLHS <- get.data(uncoupledLHS)
Sorry, it?s the first time that I perform a sensitivity analysis using the LHS.
Thank you very much for your time.
Have a nice day
Nell
________________________________
De : Rob C &l...
Latin Hypercube Sampling when parameters are defined according to specific probability distributions
2017 Jun 01
0
Latin Hypercube Sampling when parameters are defined according to specific probability distributions
...e classes at the first line of the data frame.
>
>
>
> library(pse)
> q <- list("qexp", "qunif", "qunif")
> q.arg <- list(list(rate=exponential_rate), list(min=0, max=1),
> list(min=0, max=1))
> uncoupledLHS <- LHS(model=model_function, input_parameters, N, q, q.arg)
> hist(uncoupledLHS$data$dispersal_distance, breaks=10)
>
> tabLHS <- get.data(uncoupledLHS)
>
>
>
> Sorry, it?s the first time that I perform a sensitivity analysis using the LHS.
>
>
> Thank you very much for your time.
>
> Have a nice day
&...
2012 Nov 28
7
zeros in double matrix rather than character matrix
Hi, how are you?
I have 1000 total columns with 100 rows and I have shown 4 columns of 100
rows below. I want the zeros to be read in as numerical or integer values
rather than a character. Right now I have a 100x0 character matrix rather
than a 100x1000 double matrix.
What do I need to do to read in a .csv spreadsheet with counting the zeros
as a numerical or integer value?
Thank-you.
Irucka
2012 Nov 28
1
how to keep all zeros in 1st row (not NA)
...ot;. Instead I want this to be a "101x1000 double matrix".
What needs to be done to make the .csv into a double matrix rather than a
character matrix when the first row is all zeros (0s)?
Thank-you.
Irucka Embry
This is the code that I am using:
Input <- as.matrix(read.csv("Input_Parameter.csv", header = TRUE, sep =","))
Input <- as.matrix(Input[,-1]) # remove column 1 from analysis
This is some of the values that are being read from the .csv file:
Time (day) 1 2 3 4
0 0 0 0 0
1 0.16387 0.60612 0.87705 0.83798
2 0.32774 1.2122 1.7541 1.676
3 0.4916 1.8184 2.6312...