search for: dummy2

Displaying 20 results from an estimated 51 matches for "dummy2".

Did you mean: dummy
2005 May 01
0
dll symbol loading: possible bug
...has occurred only since installing R 2.1.0. Example: Contents of file dummy1.c: --------------------------- #include <R.h> #include <Rdefines.h> SEXP dummy1() { Rprintf("this is dummy1() in C\n") ; return R_NilValue ; } --------------------------- Contents of file dummy2.c ------------------------- #include <R.h> #include <Rdefines.h> SEXP dummy2() { Rprintf("this is dummy2() in C\n") ; return R_NilValue ; } ------------------------- Files dummy1.so and dummy2.so are present in the directory as a result of system("R CMD SHLI...
2011 Jan 11
5
A question on dummy variable
...ecifically on defining dummy variables. As of now, I have come across 3 different kind of dummy variables (assuming I am working with Seasonal dummy, and number of season is 4): > dummy1 <- diag(4) > for(i in 1:3) dummy1 <- rbind(dummy1, diag(4)) > dummy1 <- dummy1[,-4] > > dummy2 <- dummy1 > dummy2[dummy2 == 0] = -1/(4-1) > > dummy3 <- dummy1 - 1/4 > > head(dummy1) [,1] [,2] [,3] [1,] 1 0 0 [2,] 0 1 0 [3,] 0 0 1 [4,] 0 0 0 [5,] 1 0 0 [6,] 0 1 0 > head(dummy2) [,1] [,2]...
2013 Mar 21
4
easy way of paste
Hello, Is there a better way to use paste such as: a = paste(colnames(list.indep)[1],colnames(list.indep)[2],colnames(list.indep)[3],colnames(list.indep)[4],colnames(list.indep)[5],sep="+") > a [1] "aa+dummy1+dummy2+bb+cc" I tried a = paste(colnames(list.indep)[1:5],sep="+") > a [1] "aa" "dummy1" "dummy2" "bb" "cc" But it will not give me the way I want. Thanks, Rebecca ----------------...
2011 Jan 03
1
Formatted output with alternating format at different rows
...couldn't find any function to write files in a similar way.. Since I want different formats for different lines, write(), write.table(), write.fwf() functions didn't work for me. Thanks for your time Ray ########## ########## In Fortran ########## real dummy3(3) real dummy4(4) real dummy2(2) dummy3 = (/1.1, 2.2, 3.3/) dummy4 = (/4.4, 5.5, 6.6, 7.7/) dummy2 = (/8.8, 9.9/) OPEN(UNIT=320,FILE='output.dat',FORM='FORMATTED') write(320,501) dummy3 write(320,502) dummy4 write(320,503) dummy2 close(320) 501 format(F5.1,F6.2,F7.3) 502 format(F5.2,F6.3,F7.4,F8.5) 503 format...
2018 Feb 22
3
Loop splitting as a special case of unswitch
For the example code below, int L = M + 10; for (k = 1 ; k <=L; k++) { dummy(); if (k < M) dummy2(); } , we can split the loop into two parts like : for (k = 1 ; k != M; k++) { dummy(); dummy2(); } for (; k <=L; k++) { dummy(); } By splitting the loop, we can remove the conditional block in the loop and indirectly increase vectorization opportunities. If we know that...
2013 Mar 21
2
How to store data frames into pdf file and csv file.
Hello, I have a data frame > mdl.summary est.coef std.err t.stat intercept 0.0011625517 0.0002671437 4.351784 aa -0.0813727439 0.0163727943 -4.969997 dummy1 -0.0002534873 0.0001204000 -2.105376 dummy2 -0.0007784864 0.0001437537 -5.415417 bb -0.0002856727 0.0001090387 -2.619920 cc 0.0003563825 0.0001114803 3.196820 and would like to store it to a pdf file, I use pdf(file = "a.pdf", paper = "a4r")...
2015 May 27
2
dummy interface shenanigans - CentOS6
...my interface on my system. I have a total of 3 dummy interfaces: dummy0 dummy1 adummy0 I've been doing some puppet testing in a vbox VM to get this all sorted out to deploy to a group of boxes. Every time I reboot my VM, it comes up WITHOUT adummy0, but I notice there is now an unconfigured dummy2. I've tried everything from adding aliases to /etc/modprobe.d/dummyopts.conf to renaming the interface via "ip" (ip link set dummy2 name adummy0). This is all fine during use, even during a network restart. But as soon as I restart the VM, it comes back up broken. I for the life o...
2001 Mar 13
1
.C-calls
...taken from the R-code of `chol' dummy1 <- .Fortran("chol", cov.matrix, lc, lc, v = matrix(0, nr = lc, nc = lc), info = integer(1), DUP = FALSE, PACKAGE = "base") c1 <- dummy1$v ## The third way. ## The code seems working very well... but? dummy2 <- double(lc * lc) .Fortran("chol", cov.matrix, lc, lc, dummy2, info = integer(1), DUP = FALSE, PACKAGE = "base") c2 <- matrix(dummy2, lc, lc) sum(abs(c0-c2)) # == 0 Cheers, Martin -- Martin Schlather email: Martin.Schlather@uni-bayreu...
2018 Feb 22
0
Loop splitting as a special case of unswitch
On Fri, Feb 23, 2018 at 12:15 AM, Jun Lim via llvm-dev <llvm-dev at lists.llvm.org> wrote: > For the example code below, > int L = M + 10; > for (k = 1 ; k <=L; k++) { > dummy(); > if (k < M) > dummy2(); > } > , we can split the loop into two parts like : > > for (k = 1 ; k != M; k++) { > dummy(); > dummy2(); > } > for (; k <=L; k++) { > dummy(); > } I believe i have reported a similar case as https://bugs.llvm.org/show_bug.cgi?id=34364 &gt...
2015 May 27
1
dummy interface shenanigans - CentOS6
...> dummy0 >> dummy1 >> adummy0 >> >> I've been doing some puppet testing in a vbox VM to get this all >> sorted out to deploy to a group of boxes. Every time I reboot my VM, >> it comes up WITHOUT adummy0, but I notice there is now an unconfigured >> dummy2. >> >> I've tried everything from adding aliases to >> /etc/modprobe.d/dummyopts.conf to renaming the interface via "ip" (ip >> link set dummy2 name adummy0). This is all fine during use, even >> during a network restart. But as soon as I restart the VM...
2013 Feb 24
2
[LLVMdev] How to measure the overhead of instrumented code
...s insert some code into the original source code. just like: ============= original source code ============= int a[10]; void fun1 () { // some source code here } ========================================= ============= instrumented source code ============= int dummy1[20]; int a[10]; int dummy2[30]; void fun1 () { // instrumented source code 1 // some source code here // instrumented source code 2 } ============= instrumented source code ============= Apparently, dummy1 and dummy2 may cause pressure of data cache, and instrumented source code 1 and instrumented source code...
2018 Feb 22
1
Loop splitting as a special case of unswitch
...1, Roman Lebedev wrote: > On Fri, Feb 23, 2018 at 12:15 AM, Jun Lim via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> For the example code below, >> int L = M + 10; >> for (k = 1 ; k <=L; k++) { >> dummy(); >> if (k < M) >> dummy2(); >> } >> , we can split the loop into two parts like : >> >> for (k = 1 ; k != M; k++) { >> dummy(); >> dummy2(); >> } >> for (; k <=L; k++) { >> dummy(); >> } > I believe i have reported a similar case as &g...
2015 Jun 17
1
Re: [PATCH v4 1/3] do_btrfs_qgroup_show: fix a bad return value
...in the "error:" label you keep the "if (ret)" condition. > for (i = 0; i < nr_qgroups; ++i) { > char *line = lines[i + 2]; > struct guestfs_int_btrfsqgroup *this = > &ret->guestfs_int_btrfsqgroup_list_val[i]; > - uint64_t dummy1, dummy2; > - char *p; > > - if (sscanf (line, "%" SCNu64 "/%" SCNu64 " %" SCNu64 " %" SCNu64, > - &dummy1, &dummy2, &this->btrfsqgroup_rfer, > - &this->btrfsqgroup_excl) != 4) { > + if (...
2005 Nov 17
1
anova.gls from nlme on multiple arguments within a function fails
Dear All -- I am trying to use within a little table producing code an anova comparison of two gls fitted objects, contained in a list of such object, obtained using nlme function gls. The anova procedure fails to locate the second of the objects. The following code, borrowed from the help page of anova.gls, exemplifies: --------------- start example code --------------- library(nlme) ##
2015 Oct 15
3
Hide the files that doesn't have permission to access
Thank you guys for your reply. I tried but it still does not work On 10/14/2015 5:37 PM, Stéphane PURNELLE wrote: > > These parameters must be put on share section, not in global section > > hide unreadable = yes > hide unwriteable files = yes > example > > [smb_shr1] > path = /mnt/LV002/share1 > read only = no > create mode = 0777
2015 Jun 17
6
[PATCH v4 0/3] btrfs: use CLEANUP_FREE_STRING_LIST for list free
As Pino's comment, we should take advantage of macro CLEANUP_FREE_STRING_LIST v4: remove some redundant strdup v3: fix test case failure v2: properly initialize lines Chen Hanxiao (3): do_btrfs_qgroup_show: fix a bad return value do_btrfs_subvolume_list: fix a bad return value btrfs: use CLEANUP_FREE_STRING_LIST for list free daemon/btrfs.c | 70
2005 Jul 19
3
Predict
When I callculate a linear model, then I can compute via confint the confidencial intervals. the interval level can be chosen. as result, I get the parameter of the model according to the interval level. On the other hand, I can compute the prediction-values for my model as well with predict(object, type=c("response") etc.). Here I have also the possibility to chose a level for the
2015 Jun 17
0
[PATCH v4 1/3] do_btrfs_qgroup_show: fix a bad return value
...reply_with_perror ("malloc"); - goto error; + free (ret); + return NULL; } for (i = 0; i < nr_qgroups; ++i) { char *line = lines[i + 2]; struct guestfs_int_btrfsqgroup *this = &ret->guestfs_int_btrfsqgroup_list_val[i]; - uint64_t dummy1, dummy2; - char *p; - if (sscanf (line, "%" SCNu64 "/%" SCNu64 " %" SCNu64 " %" SCNu64, - &dummy1, &dummy2, &this->btrfsqgroup_rfer, - &this->btrfsqgroup_excl) != 4) { + if (sscanf (line, "%m[0-9/] %...
2015 Jun 23
1
[PATCH] btrfs: remove redundant whitespace
...298,7 +1298,7 @@ do_btrfs_qgroup_show (const char *path) for (i = 0; i < nr_qgroups; ++i) { char *line = lines[i + 2]; - struct guestfs_int_btrfsqgroup *this = + struct guestfs_int_btrfsqgroup *this = &ret->guestfs_int_btrfsqgroup_list_val[i]; uint64_t dummy1, dummy2; char *p; -- 2.1.0
2015 May 27
0
dummy interface shenanigans - CentOS6
...of 3 dummy interfaces: > > dummy0 > dummy1 > adummy0 > > I've been doing some puppet testing in a vbox VM to get this all > sorted out to deploy to a group of boxes. Every time I reboot my VM, > it comes up WITHOUT adummy0, but I notice there is now an unconfigured > dummy2. > > I've tried everything from adding aliases to > /etc/modprobe.d/dummyopts.conf to renaming the interface via "ip" (ip > link set dummy2 name adummy0). This is all fine during use, even > during a network restart. But as soon as I restart the VM, it comes > back...