Displaying 5 results from an estimated 5 matches for "veca".
Did you mean:
vec
2008 Sep 10
1
Computation of contour values - Speeding up computation
Dear R useRs,
i have the following code to compute values needed for a contour plot
############################################################
"myContour" <- function(a, b, plist, veca, vecb, dim)
{
tmpb <- seq(0.5 * b, 1.5 * b, length=dim)
tmpa <- seq(0.5 * a, 1.5 * a, length=dim)
z <- matrix(0, nrow=dim, ncol=dim)
for(i in 1:dim)
{
for(j in 1:dim)
{
z[i, j] <- posteriorPdf(a=tmpa[j], b=tmpb[i],
plist=plist, ve...
2011 Nov 17
3
.Call in R
Hi R developers,
I am new to this forum and hope someone can help me with .Call in R.
Greatly appreciate any help!
Say, I have a vector called "vecA" of length 10000, I generate a vector
called "vecR" with elements randomly generated from Uniform[0,1]. Both vecA
and vecR are of double type. I want to replace elements vecA by elements in
vecR only if sum of elements in vecR is greater than or equal to 5000.
Otherwise, vecR remain...
2007 Jun 12
0
[PATCH] Combined checkFTB and capDirection into one checkOrientation function.
...const CompTransform *transform,
+ CompOutput *outputPtr,
+ const float points[3][3])
{
CompTransform sTransform = *transform;
float mvp[16];
@@ -932,90 +933,27 @@ cubeCheckFTB (CompScreen *s,
float vecA[3], vecB[3];
float ortho[3];
- (*s->applyScreenTransform) (s, sAttrib, outputPtr, &sTransform);
- transformToScreenSpace (s, outputPtr, -sAttrib->zTranslate, &sTransform);
-
- MULTM (s->projection, sTransform.m, mvp);
-
- pntA[0] = outputPtr->region.ex...
2004 Jun 29
2
binding rows from different matrices
Hello list,
I have 3 matrices with same dimension :
> veca=matrix(1:25,5,5)
> vecb=matrix(letters[1:25],5,5)
> vecc=matrix(LETTERS[1:25],5,5)
I would like to obtain a new matrix composed by alternating rows of these
different matrices (row 1 of mat 1, row 1 of mat 2, row 1 of mat 3, row 2
of mat 1.....)
I have found a solution to do it but it i...
2008 Jun 29
9
OS X wine port install error
I tried installing wine using MacPorts, and this is what happened:
Code:
ryan-vecas-macbook-pro:~ rveca$ sudo port install wine
Password:
---> Configuring expat
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/expat-...