Displaying 5 results from an estimated 5 matches for "xsamples".
Did you mean:
samples
2012 Feb 14
1
method using several (and different) arguments in turn
Dear R-developers community, I have the following generic:
setGeneric(
name="newsample",
def=function(x,y,z,a,b,c,...){standardGeneric("newsample")}
And I can build several methods for this generic. One useful thing is to use "newsample"
with only one of the 6 arguments listed. At the moment this is what I do:
setMethod(
2006 Jun 28
2
read file with readBin (the file was saved with a C-routine)
...e);
where MyitINI is a structure of the following form
typedef struct{
int KernelFileSave; /* Determined, if Systemmatrix saved or not.*/
char KernelFileName[200]; /* A-Matrix name */
char StartFileName[200]; /* Startguess (optional) */
int XSamples; /* No of samples on 1. axis of recon image */
int YSamples; /* No of samples on 2. axis of recon image */
float DeltaX; /* Sampling distance 1. axis of recon image */
float DeltaY; /* Sampling distance 2. axis of recon image */
float Xmin;...
2009 Dec 04
2
Solve linear program without objective function
Dear R-users,
i try to solve to following linear programm in R
0 * x_1 + 2/3 * x_2 + 1/3 * x_3 + 1/3 * x_4 = 0.3
x_1 + x_2 + x_3 + x_4 = 1
x_1, x_2, x_3, x_4 > 0,
x_1, x_2, x_3, x_4 < 1
as you can see i have no objective function here besides that i use the
following code.
library(lpSolve)
f.obj<-c(1,1,1,1)
f.con<-matrix(c(0,2/3,1/3,1/3,
1,1,1,1,
2003 Apr 09
3
plotting the lognormal density curve
I am trying to plot a lognormal density curve on top of an existing
histogram. Can anybody suggest a simple way to do this? Even if someone
could just explain how to plot a regular normal density curve on top of an
existing histogram, it would be a big help.
Also, is there some way to search through the R-help archives other than
simple browsing?
Thank you so much. Your help and time is greatly
2009 Jul 02
2
Using sapply to build a count matrix
Dear All,
I am new to R and slowly learning how to use the system.
The following code is an exercise I was trying.
The intent is to generate 10 random samples of size 5 from
a vector with integers 1:10 and 2 missing values. I then want
to generate a matrix, for each sample which shows the frequency
of missing values (NA) in each sample. My solution, using sapply
is at the end.
If anyone has the