search for: term3

Displaying 11 results from an estimated 11 matches for "term3".

Did you mean: terms
2005 Apr 17
1
nls segmented model with unknown joint points
...appreciate any suggestions or example code. Thanks a lot. -andy proc nlin data=Stems.Trees; params b41=-3 b42=1.5 b43=-1.5 b44=50 a41=0.75 a42=0.1; term1 = (b41*(x - 1) + b42*(x**2 -1)); if (a41 - x) >= 0 then term2 = (b43*(a41 - x)**2); else term2 = 0; if (a42 - x) >=0 then term3 = (b44*(a42 - x)**2); else term3 = 0; model y = term1+term2+term3; run;
2010 Nov 10
3
create a pairwise coocurrence matrix
Hi all, I am trying to construct a pairwise coocurrence matrix for certain terms appearing in a number of documents. For example I have the following table with binary values showing the presence or absence of a certain term in a document: term1 term2 term3 term4 term5 doc1 1 1 0 0 1 doc2 1 1 0 1 1 doc3 1 0 0 0 1 And I want to have a matrix with the number of the pairwise coocurrencies. So, based on the above table the matrix should be: term1 term2 term3 term4 term5 term1 0 2 0 1 3 term2 2 0 0 1 2 term3 0 0 0 0 0 term4 1 1 0 0 1 term5 3 2 0 1...
2011 Mar 29
1
Dirichlet surface
...My code is the following: #<begin code> a1 <- a2 <- a3 <- 2 #a2 <- .5 #a3 <- .5 x1 <- x2 <- seq(0.01, .99, by=.01) f <- function(x1, x2){ term1 <- gamma(a1+a2+a3)/(gamma(a1)*gamma(a2)*gamma(a3)) term2 <- x1^(a1-1)*x2^(a2-1)*(1-x1-x2)^(a3-1) term3 <- (x1 + x2 < 1) term1*term2*term3 } z <- outer(x1, x2, f) z[z<=0] <- NA persp(x1, x2, z, main = "Dirichlet Distribution", col = "lightblue", theta = 50, phi = 20, r = 50, d = 0.1, expand = 0.5,...
2007 Jan 01
4
Help with filled.contour()
The following plot is a first approximation to what I need: *********************************** mu1 <- 0 mu2 <- 5 s <- 1 x <- seq(-2.5, 7.5, length = 41) y <- seq(-2.5, 2.5, length = 41) f <- function(x,y){ term1 <- 1/(2*pi*sqrt(s*s)) term2 <- -1/2 term3 <- (x - mu1)^2/s term4 <- (y - mu1)^2/s term5 <- (x - mu2)^2/s term1*(.5 * exp(term2*(term3 + term4)) + .5 * exp(term2*(term5 + term4))) } z <- outer(x, y, f) persp(x, y, z) require(grDevices) filled.contour(x, y, z, axes = F, frame.plot = F, asp = 1, col = palette(gray(seq(0, 0....
2012 Nov 05
0
slider control questions
...library("tkrplot") library("relax") dirfelulet <- function (a1 = 1, a2 = 1, a3 = 1){ x1 <- x2 <- seq(0, 1, by=.01) dirf <- function(x1, x2){ term1 <- gamma(a1+a2+a3)/(gamma(a1)*gamma(a2)*gamma(a3)) term2 <- x1^(a1-1)*x2^(a2-1)*(1-x1-x2)^(a3-1) term3 <- (x1 + x2 < 1) term1 * term2 * term3 } f <- outer(x1, x2, dirf) f[f<=0] <- NA f[is.infinite(f)] <- NA persp(x1, x2, f, zlim = c(0, max(f, na.rm = TRUE)+1), main = bquote(paste("Dirichlet eloszlás, ", alpha ,"=(",.(a1),",&q...
2007 Jun 15
0
Question with nlm
..., ncol=length(sgm)); Eij[i,i] <- 1.0; # trace term term1 <- -sum(diag((invQ %*% A) %*% outerM(IMatrix(totalTime-1),Eij) %*% t(A))); # very long term term2 <- (1/totalTime)*solve((t(y) %*% t(N) %*% invQ %*% y), IMatrix(dim(y)[2])); term3 <- (t(y) %*% t(N) %*% invQ %*% A) %*% outerM(IMatrix(totalTime-1),Eij) %*% (t(A) %*% invQ %*% N %*% y); gradVecs <- -1*c(gradVecs, term1+ (term2 %*% term3)); } # end for print(paste("Gradient has length:", length(gradVecs))); return(gradVecs); }...
2019 Jan 22
2
Re: [PATCH nbdkit v2 2/4] partition filter: Support MBR logical partitions.
...on 3 is not logical, but the real problem is that there is no partition 3 in the master table, not that there is no extended partition). For example: term1$ ./nbdkit --unix nbd.sock -r -fv partitioning README README term2$ ./nbdkit -p 10810 -r -fv --filter=partition nbd socket=nbd.sock partition=3 term3$ ./qemu-nbd --list -p 10810 term2> ... nbdkit: nbd[1]: error: MBR logical partition selected, but there is no extended partition in the partition table nbdkit: nbd[1]: debug: partition: close nbdkit: nbd[1]: debug: close nbdkit: nbd[1]: debug: sending request type 2 (NBD_CMD_DISC), flags 0, offs...
2003 Oct 03
3
openoffice port build on FreeBSD 4.9
...5 "main" (TID:0x28d6a1b0, sys_thread_t:0x8055080, state:R) prio=5 at java.lang.Long.parseLong(Long.java:299) at com.sun.tools.javac.v8.util.Convert.string2long(Convert.java:41) at com.sun.tools.javac.v8.parser.Parser.literal(Parser.java:280) at com.sun.tools.javac.v8.parser.Parser.term3(Parser.java:630) at com.sun.tools.javac.v8.parser.Parser.term2(Parser.java:472) at com.sun.tools.javac.v8.parser.Parser.term1(Parser.java:441) at com.sun.tools.javac.v8.parser.Parser.term(Parser.java:382) at com.sun.tools.javac.v8.parser.Parser.term(Parser.java:365) at com.sun.tools.javac.v8.p...
2019 Jan 21
8
[PATCH nbdkit v2 0/4] Support MBR logical partitions.
This is a revised version of the two series previously posted here: https://www.redhat.com/archives/libguestfs/2019-January/msg00137.html https://www.redhat.com/archives/libguestfs/2019-January/msg00139.html There have been many smaller changes but the highlights are: - Using SECTOR_SIZE instead of hard-coding 512 everywhere. - Additional safety checks that the EBR chain doesn't jump
2017 Nov 14
8
[nbdkit PATCH v2 0/2] add nbd plugin
......' connects to another nbd server); but the reuse of the term 'nbd' might be a bit confusing, where a longer name would make it more obvious on intended usage. Here's how I tested: term1$ rm -f sock; ./nbdkit -o -U sock [-r] file file=TODO term2$ ./nbdkit [-r] -n nbd socket=sock term3$ qemu-io -f raw nbd://localhost:10809/ [-r] which let me use qemu-io commands to peek (and poke) the TODO file through two layers of nbdkit processes, while upgrading from an old-style handshake to a newstyle (I also used -fv on nbdkit and --trace='nbd_*' on qemu-io to turn up the debuggin...
2018 Jan 16
9
[nbdkit PATCH 0/7] Initial implementation of FUA flag passthrough
Tested via: term1$ qemu-nbd -k $PWD/sock -t -f raw -x foo junk --trace=nbd_\* term2$ ./nbdkit -f -v -e bar nbd socket=$PWD/sock export=foo term3$ qemu-io -t none -f raw nbd://localhost:10809/bar --trace=nbd_\* and checking the traces to see that 'w 0 1' vs. 'w -f 0 1' was able to influence whether the FUA flag showed up at the server in term1. Still to go: figure out how to expose the flags through the language bindings P...