Displaying 9 results from an estimated 9 matches for "xnorms".
Did you mean:
xforms
2007 Jan 26
2
%*% in Matrix objects
...ertain point I need to divide a matrix by a vector of norms. I find that the behavior of Matrix objects differs from normal matrix objects. Example the following code examples differ only in xnormed changing from normal to Matrix object:
x = matrix(1:12,3,4)
x = as(x, "CsparseMatrix")
xnorms = sqrt(colSums(x^2))
(xnormed = t(x) * (1/xnorms))
This produces a "warning: coercing sparse to dense matrix for arithmetic
in: t(x) * 1/xnorms." but gets the result (a 4 x 3 matrix)
I want to stay in sparse format anyway (if it helps!) so I tried
x = matrix(1:12,3,4)
x = as(x, &qu...
2011 Jan 16
3
rootogram for normal distributions
Using R-2.12.1 and latticeExtra-0.6-14, I would like to understand
why a rootogram displaying samples from the Poisson distribution looks like I
expected it, whereas a rootogram using the normal distribution does not:
library(latticeExtra)
rootogram(~rpois(1000, lambda = 50), dfun = function(x) dpois(x, lambda = 50))
rootogram(~rnorm(1000), dfun = function(x) dnorm(x,mean(x),sd(x)))
I
2017 Aug 24
1
Problem in optimization of Gaussian Mixture model
Hello,
I am facing a problem with optimization in R from 2-3 weeks.
I have some Gaussian mixtures parameters and I want to find the maximum in
that
*Parameters are in the form *
mean1 mean2 mean3 sigma1 sigma2 sigma3 c1 c2 c3
506.8644 672.8448 829.902 61.02859 9.149168 74.84682 0.1241933
0.6329082 0.2428986
I have used optima and optimx to find the
2017 Aug 10
1
"Help On optim"
Hello,
I have some parameters from Mclust function. The parameters are in the form
*parametersDf *
* mu_1 mu_2 var_mc1 var_mc2 c1
c2 *
*2 1.357283 2.962736 0.466154 0.1320129 0.5258975
0.4741025 *
*21 8.357283 9.962736 0.466154 0.1320129 0.5258975
0.4741025 *
Each row in the above data frame
2017 Aug 11
0
Problem in retrieving list parameters
Hello,
I am having some problem in retrieving the list elements
Code
Mean_of_mc is a list as described below
mean_mc_1 mean_mc_2 mean_mc_3
mean_mc 0.9577246 2.000516 2.962521
mean_mc 7.957725 9.000516 9.962521
optim(par=c(lVal=2, mu=Mean_of_mc),
fn=xnorm,
method = "BFGS", control=list(fnscale=-1))
xnorm= function(par)
{
print(par)
2019 May 11
1
R problems with lapack with gfortran
Hi,
gfortran trunk and 9-branch now have an option to automatically
generate C prototypes for old-style F77 procedures. I just did
for a in *.f; do gfortran -fsyntax-only -fc-prototypes-external $a >
${a%.f}.h; done
in the src/modules/lapack directory. This generates header
files which contain prototypes like
int ilaenv_ (int *ispec, char *name, char *opts, int *n1, int *n2, int
*n3,
2010 Mar 24
1
Omega: behavior msize when collapsing results
Hello list,
I have a problem with the value of the result size ($msize in
omegascript) when collapsing results. The index contains 151452
documents. I'm using Omega 1.0.18 on FreeBSD (I tried both the version
in ports and the latest one from xapian.org). This is my indexscript:
uniqueid: boolean=Q unique=Q field=uniqueid
objectid: field=objectid boolean=XID value=0
objecttype: field=type
2003 Jan 08
3
Errors running R in Batch mode under Win2000
I have made many different attempts to run a R program in Batch mode. I run a DOS command like:
C:\Progra~1\R\rw1061\bin\rterm.exe -q --no-restore --no-save myprogram.R out.txt
What happens:
1. DOS Shell starts up well
2. R starts
3. I get the messages:
"ARGUMENT 'myprogram.R' __ignored__"
"ARGUMENT 'out.txt' __ignored__"
4. R Shell is ready to
2019 May 04
4
R problems with lapack with gfortran
On Sat, May 04, 2019 at 06:42:47PM +0200, Thomas K?nig wrote:
>
> > - figure out Fortran2003 specification for C/Fortran interoperability
> > -- this _sounds_ like the right solution, but I don't think many
> > understand how to use it and what is implied (in particular, will
> > it require making changes to LAPACK itself?)
>
> That would actually be fairly