Displaying 20 results from an estimated 22 matches for "sx2".
Did you mean:
0x2
2018 Mar 16
3
Discrepancy: R sum() VS C or Fortran sum
...1] -7.105427e-15
s1-s2[[2]] ## R versus manual sum (Fortran
[1] -7.105427e-15
s1-s3 ## R Versus manual sum in C
[1] -7.105427e-15
s2[[2]]-s2[[1]] ## manual sum versus compiler sum() (Fortran)
[1] 0
s3-s2[[2]] ## Fortran versus C
[1] 0
My sumf and sumc are
subroutine sumf(x, n, sx1, sx2)
integer i, n
double precision x(n), sx1, sx2
sx1 = sum(x)
sx2 = 0.0d0
do i=1,n
sx2 = sx2+x(i)
end do
end
void sumc(double *x, int *n, double *sum)
{
int i;
double sum1 = 0.0;
for (i=0; i< *n; i++) {
sum1 += x[i];
}...
2018 Mar 16
1
Discrepancy: R sum() VS C or Fortran sum
...t;>
>> [1] -7.105427e-15
>>
>> s2[[2]]-s2[[1]] ## manual sum versus compiler sum() (Fortran)
>>
>> [1] 0
>>
>> s3-s2[[2]] ## Fortran versus C
>>
>> [1] 0
>>
>> My sumf and sumc are
>>
>> subroutine sumf(x, n, sx1, sx2)
>> integer i, n
>> double precision x(n), sx1, sx2
>> sx1 = sum(x)
>> sx2 = 0.0d0
>> do i=1,n
>> sx2 = sx2+x(i)
>> end do
>> end
>>
>> void sumc(double *x, int *n, double *sum)
>> {
>>...
2018 Mar 16
0
Discrepancy: R sum() VS C or Fortran sum
...05427e-15
>
> s1-s3 ## R Versus manual sum in C
>
> [1] -7.105427e-15
>
> s2[[2]]-s2[[1]] ## manual sum versus compiler sum() (Fortran)
>
> [1] 0
>
> s3-s2[[2]] ## Fortran versus C
>
> [1] 0
>
> My sumf and sumc are
>
> subroutine sumf(x, n, sx1, sx2)
> integer i, n
> double precision x(n), sx1, sx2
> sx1 = sum(x)
> sx2 = 0.0d0
> do i=1,n
> sx2 = sx2+x(i)
> end do
> end
>
> void sumc(double *x, int *n, double *sum)
> {
> int i;
> double sum1 = 0.0;
> for (i=...
1997 Sep 05
2
R-beta: help with R simulation
...n(nnoise, nsignal, jump)
{
ntotal<-nsignal+nnoise
x<<-NULL
y<<-NULL
x.temp<-0
y.temp<-0
#generate noise dots
nx1<-runif(nnoise,0,4095)
nx2<-runif(nnoise,0,4095)
ny1<-runif(nnoise,0,4095)
ny2<-runif(nnoise,0,4095)
#generate signal dots
sx1<-runif(nsignal,0,4095)
sx2<-sx1
sy1<-runif(nsignal,0,4095)
sy2<-sy1+jump
sy2<-ifelse(sy2>4095, sy2-4096,sy2) #wrap around
#put noise and signal dots together
tx1<-c(nx1,sx1)
tx2<-c(nx2,sx2)
ty1<-c(ny1,sy1)
ty2<-c(ny2,sy2)
#compute distance to nearest neighbour (x and y) in frame 2
#for each dot...
2007 May 29
2
R's Spearman
Hi all,
I am trying to figure out the formula used by R's Spearman rho (using
cor(method="spearman")) because I can't seem to get the same value as by
calculating "by hand". Perhaps I'm using "cor" wrong, but I don't know
where. Basically, I am running these commands:
> y=read.table(file="tmp",header=TRUE,sep="\t")
>
2008 Sep 29
1
crtimes discrepancy on PPC
...or file2. If file2 is positive, and file1 is negative, and
absolute_value(file1) > file2, cmp_time returns 0, even though the
times are obviously different. Of course, a file's crtime should
never be negative, which leads me to #2.
2) set_file_attrs (rsync.c) doesn't initialize sx2.crtime (e.g. when
the sxp argument is NULL). This leads to crtime values that are
occasionally > 2^31, resulting in negative crtimes.
The attached patch resolves these.
Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crtimes_ppc.patch
Type: applic...
2007 Apr 04
2
Newbie: Simple loops: complex troubles
...assign(paste("m",1,sep=""),v[k]) )
)
}
The above seems like a lot of work for such a simple feat, no?
Also, I CANNot get the following to work in a loop manor:
Ux1i<-as.integer(Ux1)
Ux2i<-as.integer(Ux2)
Ux3i<-as.integer(Ux3)
or
Sx1<-sort(Ux1i)
Sx2<-sort(Ux2i)
Sx3<-sort(Ux3i)
Maybe I am just not using matrixes enough? but even that seems quite a lot
more complex than calling x<-matrix() then grabbing values by
x[j][k]...(java style if i remember correctly). the matrix help in R dosnt
make much sense to me. And also i am not sure wh...
2009 Jun 26
5
Running Cubase with wine - HOW?
...base or at least Cakewalk Sonar with Addictive Drums (and EzDrummer). Plus Guitar Pro 5 would be good too.
I have recently tried GOS and Slax. GOS managed to launch Foobar. Cubase SX 2 and SX3 setup managed to be launched, but SX3 did not install (some problems during driver installation maybe) and SX2 just does not start.
WHY? Cubase is in the list of programs that run.
WHAT EXACTLY SHOULD I DO TO RUN Cubase with wine? Tell me, and I'll download exactly the version of Linux you'll tell me to and follow all instructions.
2010 Apr 20
1
[PATCH] nv30/exa : cleanup from nv40 exa
...rmCoord(state->unit[0].transform,
- srcX, srcY + height,
- state->unit[0].width,
- state->unit[0].height, &sX1, &sY1);
- NV30EXATransformCoord(state->unit[0].transform,
- srcX + 2*width, srcY + height,
- state->unit[0].width,
- state->unit[0].height, &sX2, &sY2);
+ srcX + 2*width, srcY + height,
+ state->unit[0].width,
+ state->unit[0].height, &sX2, &sY2);
if (state->have_mask) {
- NV30EXATransformCoord(state->unit[1].transform,
- maskX, maskY - height,
- state->unit[1].width,
- st...
2009 Mar 17
11
Refactoring module
Dear all
Please see the following module, In module SX3 SX4 and SX5 have similar
class Tasklist, but inherit from different class.
I will use the following code to connect to different data sources
RemoteSX3Model.establish_connection sx3_hash
RemoteSX4Model.establish_connection sx4_hash
RemoteSX5Model.establish_connection sx5_hash
How can I refactor my code in module to look simpler? Thank you
2016 Oct 16
2
[PATCH] exa: add GM10x acceleration support
...NVC0_3D(CB_POS), 3 * (4 + 2 + 2) + 1);
+ PUSH_DATA (push, 0x80);
+
+ PUSH_DATAf(push, sx1);
+ PUSH_DATAf(push, sy1);
+ PUSH_DATAf(push, 0);
+ PUSH_DATAf(push, 1);
+ PUSH_DATAf(push, tx1);
+ PUSH_DATAf(push, ty1);
+ PUSH_DATAf(push, 0);
+ PUSH_DATAf(push, 0);
+
+ PUSH_DATAf(push, sx2+(sx2-sx1));
+ PUSH_DATAf(push, sy1);
+ PUSH_DATAf(push, 0);
+ PUSH_DATAf(push, 1);
+ PUSH_DATAf(push, tx2+(tx2-tx1));
+ PUSH_DATAf(push, ty1);
+ PUSH_DATAf(push, 0);
+ PUSH_DATAf(push, 0);
+
+ PUSH_DATAf(push, sx1);
+ PUSH_DATAf(push, sy2+(sy2-sy1));
+ PUSH_DATAf(push, 0);
+ P...
2006 Sep 17
2
Standard error of coefficient in linear regression
Hello R users,
I have a substantial question about statistics, not about R itself, but
I would love to have an answer from an R user, in form of an example in
R syntax. I have spent whole Sunday searching in Google and browsing the
books. I've been really close to the answer but there are at least three
standard errors you can talk about in the linear regression and I'm
really confused.
2016 Oct 27
0
[PATCH v2 1/7] exa: add GM10x acceleration support
...NVC0_3D(CB_POS), 3 * (4 + 2 + 2) + 1);
+ PUSH_DATA (push, 0x80);
+
+ PUSH_DATAf(push, sx1);
+ PUSH_DATAf(push, sy1);
+ PUSH_DATAf(push, 0);
+ PUSH_DATAf(push, 1);
+ PUSH_DATAf(push, tx1);
+ PUSH_DATAf(push, ty1);
+ PUSH_DATAf(push, 0);
+ PUSH_DATAf(push, 0);
+
+ PUSH_DATAf(push, sx2+(sx2-sx1));
+ PUSH_DATAf(push, sy1);
+ PUSH_DATAf(push, 0);
+ PUSH_DATAf(push, 1);
+ PUSH_DATAf(push, tx2+(tx2-tx1));
+ PUSH_DATAf(push, ty1);
+ PUSH_DATAf(push, 0);
+ PUSH_DATAf(push, 0);
+
+ PUSH_DATAf(push, sx1);
+ PUSH_DATAf(push, sy2+(sy2-sy1));
+ PUSH_DATAf(push, 0);
+ P...
2016 Oct 17
0
[PATCH] exa: add GM10x acceleration support
...ush, 0x80);
> +
> + PUSH_DATAf(push, sx1);
> + PUSH_DATAf(push, sy1);
> + PUSH_DATAf(push, 0);
> + PUSH_DATAf(push, 1);
> + PUSH_DATAf(push, tx1);
> + PUSH_DATAf(push, ty1);
> + PUSH_DATAf(push, 0);
> + PUSH_DATAf(push, 0);
> +
> + PUSH_DATAf(push, sx2+(sx2-sx1));
> + PUSH_DATAf(push, sy1);
> + PUSH_DATAf(push, 0);
> + PUSH_DATAf(push, 1);
> + PUSH_DATAf(push, tx2+(tx2-tx1));
> + PUSH_DATAf(push, ty1);
> + PUSH_DATAf(push, 0);
> + PUSH_DATAf(push, 0);
> +
> + PUSH_DATAf(push, sx1);
> + PUSH_DATAf(pu...
2009 Nov 04
1
[PATCH] nv10/exa: Spring-cleaning
...height)
{
- ScrnInfoPtr pScrn = xf86Screens[pDst->drawable.pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86Screens[pix_dst->drawable.pScreen->myNum];
NVPtr pNv = NVPTR(pScrn);
struct nouveau_channel *chan = pNv->chan;
struct nouveau_grobj *celsius = pNv->Nv3D;
- float sX0, sX1, sX2, sY0, sY1, sY2, sX3, sY3;
- float mX0, mX1, mX2, mY0, mY1, mY2, mX3, mY3;
+ PicturePtr mask = pNv->pmpict,
+ src = pNv->pspict;
+ PictVector dstq[4] = QUAD(dstX, dstY, width, height),
+ maskq[4] = QUAD(maskX, maskY, width, height),
+ srcq[4] = QUAD(srcX, srcY, width, height);
+
+ MAP(trans...
2011 Mar 17
3
is this possible
dear all
i need driver for IC CY7C68001 (cypress semiconductor) for linux .can anyone guide me for this driver link? i am running my exe through Wine.. so wheter wine will automatically pick the driver from kernal or i have to add this driver into the W ine lib ??
regards
2010 Apr 13
1
DAHDI-Linux and DAHDI-Tools 2.3.0 Released
...nt in dahdi-tools for more information.
* wct4xxp: Added support for Fifth Generation firmware which allows dual and
quad span cards to function on systems which are unable to service the
interrupt every millisecond in addition to support for revision 3.1 of the
framer.
* wcb4xxp: Swyx 4xS0 SX2 QuadBri, HFC-4S Eval board, and several additional
Junghanns cards added to the device table.
* wct4xxp, wcte12xp: Added losalarmdebounce, aisalarmdebounce, and
yelalarmdebounce module parameters in order to configure alarm debounce
times (specified in ms).
* wcte12xp: Added 'max_late...
2010 Apr 13
1
DAHDI-Linux and DAHDI-Tools 2.3.0 Released
...nt in dahdi-tools for more information.
* wct4xxp: Added support for Fifth Generation firmware which allows dual and
quad span cards to function on systems which are unable to service the
interrupt every millisecond in addition to support for revision 3.1 of the
framer.
* wcb4xxp: Swyx 4xS0 SX2 QuadBri, HFC-4S Eval board, and several additional
Junghanns cards added to the device table.
* wct4xxp, wcte12xp: Added losalarmdebounce, aisalarmdebounce, and
yelalarmdebounce module parameters in order to configure alarm debounce
times (specified in ms).
* wcte12xp: Added 'max_late...
2016 Oct 27
11
[PATCH v2 0/7] Add Maxwell support
I believe I've addressed all the feedback from the first time around, and
also made fixes necessary for GM20x based on testing results. I believe
now it should actually work for all GM10x and GM20x. Further, GP10x should
be very easy to add, but without someone to actually test I didn't want to
claim support for it.
Ilia Mirkin (7):
exa: add GM10x acceleration support
hwdefs: update
2005 Aug 03
7
call fortran in R
...ans/kmeans3.f
There is the wrapper I have paste inside de kmeans3.f file:
c THIS IS THE WRAPPER
subroutine wrapper(n, p, nran, mat, ishort, w, z,
+ ntran, istand, k1, k2, iassign, iseed)
integer n,p,kmax
real*8 mat(n,p),sx(kmax,p),sx2(kmax,p),vect(p),
+ xbar(kmax,p),var(kmax,p),mean(p),coord(10)
real*8 D1,Dref,SSE,SSEref,Dvec(kmax),w(p),SST
real*8 CH,CHr(kmax),SSEr(kmax),temp
integer list(n),howmany(kmax),no(n),nobest(kmax)
integer listr(kmax,n),howmany...