search for: factorise

Displaying 14 results from an estimated 14 matches for "factorise".

Did you mean: factories
2009 Apr 03
1
"factorise" variables in a data.frame
...numeric or integer into factors (before plotting, for instance), as in the following example, d <- data.frame( x = seq(1, 10), y = seq(1, 10), z = rnorm(10), a = letters[1:10]) d2 <- within(d, { x = factor(x) y = factor(y) }) str(d) str(d2) I'd like to write a function factorise() which takes a data.frame and a vector of variable names, and returns the original data.frame with the desired variables converted to factor, factorise <- function(d, f) ***ply(d, f, factor) # some apply function also, perhaps a defactorise() function doing the reverse operation with as...
2008 Nov 03
1
qr() and Gram-Schmidt
Hi, Why the qr() produces a negative Q compared with Gram-Schmidt? (note example below, except Q[2,3]) Here is an example, I calculate the Q by Gram-Schmidt process and compare the output with qr.Q() a <- c(1,0,1) b <- c(1,0,0) c <- c(2,1,0) x <- matrix(c(a,b,c),3,3) ########################## # Gram-Schmidt ########################## A <- matrix(a,3,1) q1 <-
2005 Aug 03
1
abline and linearity over groups
...0 values each: test=data.frame(cbind( l=c(rnorm(10,0,30),rnorm(10,100,30),rnorm(10,200,30)), t = c(rep(0,10), rep(1,10), rep(2,10)) )) when I do: plot(test$l~test$t) abline(lm(test$l~test$t)) the abline is a straight line through the centre of the points of each of the groups. If, however, I factorise the groups (in order to do e.g. anova analysis) and then plot the data test$tF=factor(test$t) plot(test$l~test$tF) abline(lm(test$l~test$tF)) the abline is now shifted up and to the left of where I would expect the line to go (through the centre of the points of each of the groups). If there is...
2002 Jun 27
2
extension of rsync on crypted files
Hello, I am a french student and I have written a technical report on an extension of the rsync algorithm to crypted files. I started from the situation of a client machine A user who doesn't wish to save an original file v0 and its successive versions v1 v2 v3 ... on a distant server B but rather to save the private ciphering of these files on the server. Let C be the cipher algorithm and
2010 Jul 23
2
application call to Gosub affects flow of control, and needs to be re-written using AEL
Hi, For some reason (outbound call tracking) I've got a few different outbound call process (using a macro for queuemetrics logging, or direct call) i wanted to factorise the routing process so i came up with something like the following. All in one it's working like expected, however every "ael reload" command trigger a lot of warning like that "application call to Gosub affects flow of control, and needs to be re-written using AEL if, wh...
2016 Aug 24
1
[PATCH] filesystem_walk: fixed root inode listing
With the current implementation, the root inode of the given partition is ignored. The root inode is now reported. Its name will be a single dot '.' reproducing the TSK API. Signed-off-by: Matteo Cafasso <noxdafox@gmail.com> --- daemon/tsk.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/daemon/tsk.c b/daemon/tsk.c index dd368d7..4a0517b 100644 ---
2009 Feb 16
1
Adjusting the Axis in a histogram to the prespecified breaks
Hello I tried a few searches on hist, histogram, equidist and space (space=0 was mentioned in one contribution), but none of that so far worked. It also says in the help "##-- For non-equidistant breaks, counts should NOT be graphed unscaled:" - which is precisely what I am looking for, but I cannot find it. I want to make a histogram using breaks which are spaced exponentially and in
2011 May 29
0
Use of cruel and unusal frame sizes
Hi, I've been developing an application using CELT for some time and, for simplicity, have restricted frame sizes to powers of 2. During final testing I tested with a sound interface (the Phonic Firefly 302) whose ASIO drivers are very restictive in what they accept, and have about 6 allowable frame sizes < 512, a lot of which are odd numbers. However some are even numbered, so
2001 Nov 20
0
Time Series Event Count: Great Responses So Far!
...st estimate a marginal model (unless you are actually interested in inference about the correlation structure). In principle this could be inefficient, but for very discrete data there isn't much information in the autocorrelation. - The full likelihood is intractable anyway -- it doesn't factorise the way a Gaussian AR-1 does. That's one reason Bayesians like these models: MCMC is the easy way out computationally (though still not trivial). There's a fairly popular approximate maximum likelihood method called PQL that works reasonably well except in binary and small count data. I...
2012 Dec 10
0
UPP schedule and progress
...s already implemented at least in the nut_clock_* iface UT; it should be quite easy to make use of it. 2/ Sending signal to other process is a pretty simple task and with NutStream, we can read PIDs from .pid files on a couple lines of code... If it's implemented in libnutipc, we shall have to factorise libnutconf, though (extract nutstream). I suggest libnutio. 3/ Config. attribute access: As suggested for the nutconf tool, the access from command-line shall be done via attribute paths. E.g. upsd.users.upsmon.mode may be mapped to upsd.users::[upsmon]::upsmon directive value ("master"...
2004 Mar 24
2
geoR - help for bayesian modelling
Hi, I am trying to do a bayesian prediction for soil pollution data above a certain threshold, using geoR. Everything is working fine until i am doing the krig.bayes. I tried to do the prediction on a grid 67 by 113 cells and my computer is freezing to death. At larger numbers of cells it tells me after a while that it reaches the max. memory of 511 Mb. My computer has only 512 Mb of RAM.
2008 Aug 22
0
Wine release 1.1.3
...p the loaded module in SLTG_ProcessModule. oleaut32: Handle strings with a length of 0xffff in SLTG_DoVars. oleaut32: Fix the loading of the parameter name for SLTG propget functions. rpcrt4: Validate the uuid portion of the string passed to RpcStringBindingParseA/W. rpcrt4: Factorise conformant array NDR functions and use them to fix the wire-representation of complex structures with conformant arrays. rpcrt4: Add tests for a complex struct with conformant array. rpcrt4: Factorise conformant varying array functions into array_* functions. rpcrt4: Factorise con...
2015 May 28
12
[PATCH v2 1/9] acpi: Rename v1 DSM to mux to avoid ambiguity
This is especially true when variables or functions are just called dsm without specifying the v1. Changes since v1: * Fix typo in commit explanation * Change has_dsm to has_mux in nouveau_dsm_detect Signed-off-by: Pierre Moreau <pierre.morrow at free.fr> --- drm/nouveau/nouveau_acpi.c | 72 +++++++++++++++++++++++----------------------- drm/nouveau/nouveau_acpi.h | 4 +--
2007 Nov 09
0
Wine release 0.9.49
...age. include: Take care to not declare CtxtHandle and PCtxtHandle more than once when including both sspi.h and wincred.h. rpcrt4: Add a small bit of documentation as to what NdrStubCall2 does. rpcrt4: Move some type definitions from ndr_stubless.c to ndr_stubless.h. rpcrt4: Factorise out the argument processing from NdrStubCall2 into two functions. include: Add a new header file: midles.h. include: Fix a typo in midles.h. rpcrt4: Handle FC_IGNORE in the base type functions. server: Don't do access checks on the security descriptors of newly created o...