Displaying 18 results from an estimated 18 matches for "diff2".
Did you mean:
diff
2010 Nov 12
1
Problem retrieving data from R2InBUGS
...r list
I am calling the functiton bugs() provided by R2WinBugs to performs an IRT analysis. The function returns a set of estimated parameters over n replications/iterations. For each replication, two sets of person measures (theta1 and theta2) and two sets of item difficulty parameters (diff1 and diff2) are returned. The code used to obtain these estimates is as follows:
sim <- bugs(data,init,model.file="drift.bugs",parameters=c("theta1","theta2","diff1","diff2"),n.chains=n.chains,n.iter=n.reps,n.burnin=1000,bin=1,n.thin=1,digits=3, codaPkg=T)...
2009 Jan 29
1
Inconsistency in F values from dropterm and anova
...fferent. I don't know how to calculate F values
from deviance tables (and can't seem to find anything suggesting how), and
so haven't been able to calculate F for myself to see which is more
accurate. Below is an example of the code, and I'm using R version 2.8.0.
> model1=glm(diff2^(0.491)~mtype*morder,family=Gamma)
> dropterm(model1,test="F")
Single term deletions
Model:
diff2^(0.491) ~ mtype * morder
Df Deviance AIC F value Pr(F)
23.181 -16.813
mtype:morder 3 24.729 -13.741 2.0694 0.1096
>...
2017 Mar 21
0
[PATCH] net: virtio_net: use new api ethtool_{get|set}_link_ksettings
...v,
}
/* Check if the user is trying to change anything besides speed/duplex */
-static bool virtnet_validate_ethtool_cmd(const struct ethtool_cmd *cmd)
+static bool
+virtnet_validate_ethtool_cmd(const struct ethtool_link_ksettings *cmd)
{
- struct ethtool_cmd diff1 = *cmd;
- struct ethtool_cmd diff2 = {};
+ struct ethtool_link_ksettings diff1 = *cmd;
+ struct ethtool_link_ksettings diff2 = {};
/* cmd is always set so we need to clear it, validate the port type
* and also without autonegotiation we can ignore advertising
*/
- ethtool_cmd_speed_set(&diff1, 0);
- diff2.port = PORT_O...
2017 Mar 21
0
[PATCH] net: virtio_net: use new api ethtool_{get|set}_link_ksettings
...v,
}
/* Check if the user is trying to change anything besides speed/duplex */
-static bool virtnet_validate_ethtool_cmd(const struct ethtool_cmd *cmd)
+static bool
+virtnet_validate_ethtool_cmd(const struct ethtool_link_ksettings *cmd)
{
- struct ethtool_cmd diff1 = *cmd;
- struct ethtool_cmd diff2 = {};
+ struct ethtool_link_ksettings diff1 = *cmd;
+ struct ethtool_link_ksettings diff2 = {};
/* cmd is always set so we need to clear it, validate the port type
* and also without autonegotiation we can ignore advertising
*/
- ethtool_cmd_speed_set(&diff1, 0);
- diff2.port = PORT_O...
2017 Mar 21
1
[PATCH 2] net: virtio_net: use new api ethtool_{get|set}_link_ksettings
...v,
}
/* Check if the user is trying to change anything besides speed/duplex */
-static bool virtnet_validate_ethtool_cmd(const struct ethtool_cmd *cmd)
+static bool
+virtnet_validate_ethtool_cmd(const struct ethtool_link_ksettings *cmd)
{
- struct ethtool_cmd diff1 = *cmd;
- struct ethtool_cmd diff2 = {};
+ struct ethtool_link_ksettings diff1 = *cmd;
+ struct ethtool_link_ksettings diff2 = {};
/* cmd is always set so we need to clear it, validate the port type
* and also without autonegotiation we can ignore advertising
*/
- ethtool_cmd_speed_set(&diff1, 0);
- diff2.port = PORT_O...
2017 Mar 21
1
[PATCH 2] net: virtio_net: use new api ethtool_{get|set}_link_ksettings
...v,
}
/* Check if the user is trying to change anything besides speed/duplex */
-static bool virtnet_validate_ethtool_cmd(const struct ethtool_cmd *cmd)
+static bool
+virtnet_validate_ethtool_cmd(const struct ethtool_link_ksettings *cmd)
{
- struct ethtool_cmd diff1 = *cmd;
- struct ethtool_cmd diff2 = {};
+ struct ethtool_link_ksettings diff1 = *cmd;
+ struct ethtool_link_ksettings diff2 = {};
/* cmd is always set so we need to clear it, validate the port type
* and also without autonegotiation we can ignore advertising
*/
- ethtool_cmd_speed_set(&diff1, 0);
- diff2.port = PORT_O...
2013 Mar 10
2
list + lapply insead of matrix + apply
...t I need it in list form.
I have a matrix
x <- matrix(c(12.1, 3.44, 0.1, 3, 12, 33.1, 1.1, 23), nrow=2)
for list form example, the conversion is
x.list <- lapply(seq_len(nrow(x)), function(i) x[i,])
### list version
calcnorm=function(a, b){
diff <- mapply("-", a, b)
diff2 <- mapply("*", diff, diff)
sqrt.diff <-sqrt(sum(diff2))
return(sqrt.diff)
}
calcnorm2=function(a,X){
lapply(X, calcnorm, a)
}
lapply(x.list, calcnorm, x.list)
[[1]]
[[1]][[1]]
[1] 0
[[1]][[2]]
[1] 31.75257
[[2]]
[[2]][[1]]
[1] 31.75257
[[2]][[2]]
[1] 0
### matrix...
2004 Aug 06
2
optimization possible?
hi,
i did some tests about performance in jspeex ...
uls@mainframe:~/eclipse/avrelay$ java TestClient
Diff1: 0
10
Diff2: 141
started.
uls@mainframe:~/eclipse/avrelay$
<p>{
SpeexEncoder e1=new SpeexEncoder();
e1.init(0,1,44100,1);
byte[] by1=new byte[320];
long l1=System.currentTimeMillis();
long l2=System.currentTimeMillis();
System.out.println("Diff1: "+(l2-l1));
e1.proc...
2004 Aug 06
0
optimization possible?
hi,
Ulrich B. Staudinger wrote:
> uls@mainframe:~/eclipse/avrelay$ java TestClient
> Diff1: 0
> 10
> Diff2: 141
> started.
> uls@mainframe:~/eclipse/avrelay$
Sorry, i think this number (diff2) occured due to jvm startup load ...
when doing repetive encoding the numbers are much closer to Marc's
minimum requirements (with Diff being the elapsed time for encoding on
my dual 350):
uls@mainfr...
2011 Feb 24
1
reshaping list into a contingency table
Hi all,
I have been struggling with this problem for a few days.
I have a data table like this:
gene rpkm1 diff1 rpkm2 diff2
gene1 23 50 13 120
gene2 111 220 827 1200
gene3 75 998 71 910
And I want to re-format it so that, for each gene, I have a 2x2 contingency
table, such as:
gene rpkm diff
gene1 23 50
gene1 13 120
gene2 111 220
gene2 827 1200
gene3 75 998
gene3 71 910
I have found one...
2008 Jan 10
5
diff in a dataframe
I have a dataframe say:
date price_g price_s
0.34 0.56
0.36 0.76
. .
. .
. .
and so on. say, 1000 rows.
Is it possible to add two columns to this dataframe, by computing say
diff(log(price_g) and diff(log(price_s)) ?
The elements in the first row of these columns cannot be computed, but
2003 Mar 17
1
Changes to OpenSSH for NetWare
...ince Brimhall
Senior Software Engineer
Web Services
801.861.1724
vbrimhall at novell.com
Novell, Inc., The leading provider of Net Business Solutions
http://www.novell.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff2.out
Type: application/octet-stream
Size: 39749 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20030317/89bf4216/attachment.obj
2004 Oct 08
0
(retry) 3.0.7: 'map to guest' incomplete behavior
...#39;map to guest'
only works if the given username is not in AD.
I modified reply_spnego_kerberos() in smbd/sesssetup.c so that it would
use the guest user if the user is not in the unix password db and
'map to guest' is on. The patch is available here:
http://www.avalon.net/~hakehoe/diff2.txt
If the developers have a problem with extending the 'map to guest'
functionality in this way, then I suggest you add a new option
('unix map to guest' or something).
I know that there's a hook to have smbd create user accounts on the
fly, but that is not an acceptable solu...
2016 Dec 01
2
Implementing secondary quota w/ "Archive" namespace
On Thu, Nov 24, 2016 at 9:10 PM, Mark Moseley <moseleymark at gmail.com> wrote:
> On Thu, Nov 24, 2016 at 10:52 AM, Timo Sirainen <tss at iki.fi> wrote:
>
>> On 24 Nov 2016, at 9.33, Mark Moseley <moseleymark at gmail.com> wrote:
>> >
>> > On Wed, Nov 23, 2016 at 6:05 PM, Timo Sirainen <tss at iki.fi> wrote:
>> >
>> >> On
2012 Dec 10
1
Sweep out control
Dear all,
Assume that I have the following data structure:
d <- expand.grid(subj=1:5, time=1:3, treatment=LETTERS[1:3])
d$value <- 10 ^ (as.numeric(d$treatment) + 1) + 10 * d$subj + d$time
d$value2 <- 100000 + d$value
where d$treatment == "C" stands for my control group. What I want to achieve now is to subtract the values corresponding to d$treatment == "C" from
2012 Jul 24
3
Collapsing a vector/data-frame based on the previous values
Hello
I have a data frame like this:
dput(states)
structure(list(Date = c("24/07/2012", "25/07/2012", "26/07/2012",
"27/07/2012", "28/07/2012", "24/07/2012", "25/07/2012", "26/07/2012",
"27/07/2012", "28/07/2012"), State = c(1L, 1L, 1L, 1L, 1L, -1L,
-1L, -1L, 1L, -1L)), .Names = c("Date",
2006 Sep 02
0
[LLVMdev] gfortran calling convention
On Fri, 1 Sep 2006, Michael McCracken wrote:
> Here's what works now, and I have a separate test case for each of these:
>
> statement functions
> intrinsic functions (print, cos, etc)
> loops, goto statments
> scalarized array operations
> function calls with *no arguments*
> simple common blocks
Great!
> Function calls with more than one argument don't work.
2006 Sep 02
2
[LLVMdev] gfortran calling convention
The NIST F77 test suite doesn't seem to be compatible with gfortran at
all, so I had to work from my own sample codes, and generate test
cases from them.
Here's what works now, and I have a separate test case for each of these:
statement functions
intrinsic functions (print, cos, etc)
loops, goto statments
scalarized array operations
function calls with *no arguments*
simple common