search for: straighforward

Displaying 20 results from an estimated 49 matches for "straighforward".

Did you mean: straightforward
2004 Feb 12
1
Porting let* from Common LISP to R
...lock is like let except it is guaranteed to evaluate the initialization of its local variables in sequentially nested scopes, i.e. it provides an order to the binding and visibility of preceding variables.". I have included the recursive Common LISP function in which let* block appears and a straighforward R port. Thank you, Gabriel Baud-Bovy The let* block appears in the following LISP function: (defun infer (goal subsitution kb) (if(null kb) (make-empty-stream) (let* ((assertion (rename-variable (car kb))) ; ********* (match ([...]))) (if (equal match ...
2009 Aug 24
2
Multiply List by a Numeric
I apologize for what seems like it should be a straighforward query. I am trying to multiply a list by a numeric and thought there would be a straightforward way to do this, but the best solution I found so far has a for loop. Everything else I try seems to throw an error "non-numeric argument to binary operator" Consider the example: a <- 1 b...
2014 Apr 09
3
VPN SIP Phone | PC Traffic
...office network. Basically, shipping a mikrotik router that 'calls home' and establishes a vpn connection for the pc and phone that are connected to the mikrotik... user plugs router in, plugs phone and computer into router, and that traffic is encapsulated back to our office... simple and straighforward. We would like to remove the router from the equation... does anyone know of a SIP phone with a built in VPN client that can provide the tunnel for *both the phone and the pc traffic*? It would seem trivial to route a subnet down to the vpn client in the phone, that would be available to devices...
2010 Jan 13
2
[LLVMdev] How to create forward reference to BasicBlock?
Hi, Can anyone tell me if there's a straighforward way to create a new BasicBlock without inserting it into a function's basic block list? I want to do this so I can create a forward reference to a block that's position in the function is not yet known. I've tried: Function function Builder builder; bb = BasicBlock::Create(function,....
2010 Dec 26
2
What is the best way to lag a time series?
...on, etc). It is obvious that I need to be able to lag x and y in a flexible way. So far, my temporary solution was to construct the lags manually (x1,..,xn and y1,..,yn) in a spreadsheet and import it to R, which is not very satisfactory because it does not allow for much flexibility. Is there a straighforward command which allows me to easily construct a lag when required and which allows me to, for example, use the lm() command to fit a dynamic model and the bgtest() command to perform the breusch-godfrey test on the same model? Is it adviseable to use time series objects which consist of many time s...
2004 Mar 22
3
how to loop through names ?
Hi I'm sure I'm missing something very straighforward here :-( I have a data set 'sales' as follows: ========================================== # read in the sales data sales<-read.table("sales.dat",header=TRUE); #generate a serial field sales$serial=c(1:24) sales an l ml ne ni total serial 1 43 25 35 51 17 69 1 2 3...
2006 Nov 16
1
silhouette plot colors from trimkmeans solution
I was trying to create a multi-color silhouette plot (each cluster a different color) from clusters created by trimkmeans. This works straighforwardly on an object created from pam however my colors are interwoven when I try the same approach on clusters from trimkmeans. I also tried sorting the silhouette object using sortSilhouette which did not solve the problem. If anyone has a suggestion, please let me know. I'm using R 2.4.0 on an XP...
2006 Oct 14
1
weight cases?
Dear all, This is probably a stupid question for which I have a solution, which unfortunately is not as straighforward as I'd like. I wonder if there's a simple way to apply a weighting variable for the cases of a dataframe (well I'm sure there is, I just cannot find it). My toy example: > my.data <- data.frame(var1=c("c", "e", "a", "d", "b"),...
2004 Jul 23
1
klibc integrated in the kernel
This seem to be a good timing taking up the integration of klibc in the kernel again. Based one klibc-0.152 and klibc.bkbits.net/2.5-klibc I will take a shot of it. I will focus on getting the library compiled (should be pretty straighforward). Next two steps are: 2) Adding minimum applications to the kernel (if any) 3) Support applications outside the kernel I will put my work on bkbits.net when I have something useable, and also post patches here. If anyone already working on this please say so, to avoid duplicate effort. Sam
2010 Jan 13
0
[LLVMdev] How to create forward reference to BasicBlock?
On Wed, Jan 13, 2010 at 2:27 PM, James Williams <junk at giantblob.com> wrote: > Hi, > > Can anyone tell me if there's a straighforward way to create a new > BasicBlock without inserting it into a function's basic block list? I want > to do this so I can create a forward reference to a block that's position in > the function is not yet known. > > I've tried: > > Function function > Builder builde...
2010 Sep 17
3
Preparing data frame for Plotrix kiteChart
Although, I can fix this, I am trying to sort out something as straighforward as possible for my students, and I have some questions that hopefully someone can help me with. My data is: Species Distance Count A 5 0 A 10 5 A 15 5 A 20 3 A 25 1 B 5 8 B 10 20 B 15 28 B 20 12 B 25 12 C 5 5 C 10 12 C 15 19 C 20 27 C 25 34 But I am struggling to get this into a...
2016 Nov 17
2
Loop invariant not being optimized
...at it would indicate that the pointers going into the function are not aliased and that that would allow the optimization, but it didn't make any difference. Of course it's easy to rewrite the example code to avoid this extra load/inner loop, but I would have thought this would be a fairly straighforward optimization for the optimizer. Am I missing something? Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161117/f570645d/attachment.html>
2019 Apr 26
10
Automatically backing up and restoring x18 around function calls on AArch64?
...as if it would be possible to make Clang/LLVM always back up and restore x18 on any call to any other function, to make sure that the register maintains the right value as long as running in Wine code. (One concern is that this could end up rather expensive though.) I didn't really find any straighforward way of starting to implement this however. Does anyone here happen to have ideas about how one could either implement this, or solve it in another way? // Martin
2017 Apr 02
2
Potential bug in utils::citation()
Hi, I believe the function utils::citation() will fail if the package specified has two or more citation entries in the current R-devel. The following error is issued: 'missing' can only be used for arguments I have created a working example on github [0] that is build using R-devel on travis-ci [1]. Jim Hester has potentially identified [2] the source of the problem as being from a
2017 Apr 04
3
Allow SHA1 deprecation for rsa-sha
...e (as an example, as SHA2-256 or SHA2-512 could also potentially be not desirable), where it is considered insecure or undesirable. I am proposing to add a mechanism, and happy to submit a patch, to enable selection of the Hashes allowed for RSA. If all or any of SHA1, SHA2-256, and SHA2-512. The straighforward solution would be just to adapt all options that currently accept "ssh-rsa" to mean that they accept (SHA1,SHA2-256,SHA2-512), and to use rsa-sha2-256 and rsa-sha2-512 to mean just the specific hash formats. So ssh-rsa would mean the same as now, and in the future deprecation for sha1 co...
2011 Dec 06
1
help wrapping findInterval into a function
...lue. The findInterval function works well; however, I would like to incorporate it into a function so that I can run multiple findInterval functions for many different water-quality analyses (and I have to do this for many dataset) but it seems to fall apart when incorporated into a function. Run straighforward, the findInterval function works as desired, e.g. below, creating the new CalciumFlag column with the appropriate flag for, in this case, levels of calcium in the water: WQdata$CalciumFlag <- with(WQdata, ifelse(analysis == "Calcium", (flags <- c("Y", 'Q', "&...
2005 Jan 24
2
T1 E&M vs PRI question
Ok, I'm about to take the plunge, and am trying to decide between Channelized T1 E&M and PRI. I'm getting an "Integrated T1" which will have data and voice capability, all plugged directly into my digium single T1 card. In either case the data piece looks pretty straighforward, just setup the channel properly, hand it off to the linux hdlc layer, and route away.... the voice side seems a little more complex -- I'm looking for clarification and/or advice: It seems to me that the major differences between the two different voice delivery mechanisms (other than cost)...
2016 Nov 18
2
Loop invariant not being optimized
...pointers going into the > function are not aliased and that that would allow the optimization, but it > didn't make any difference. > > Of course it's easy to rewrite the example code to avoid this extra > load/inner loop, but I would have thought this would be a fairly > straighforward optimization for the optimizer. Am I missing something? > > Phil > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161118/154ebef8/attachment.html>
2018 Mar 05
5
data analysis for partial two-by-two factorial design
...drugs) has a response of 0, drugA has an effect of 1, drugB has an effect of 2, and the effects are additive, with no noise we would have: > d <- data.frame(drugA = c("n","y","y"),drugB = c("n","n","y")) > y <- c(0,1,3) And a straighforward inear model recovers the effects: > lm(y ~ drugA + drugB, data=d) Call: lm(formula = y ~ drugA + drugB, data = d) Coefficients: (Intercept) drugAy drugBy 1.282e-16 1.000e+00 2.000e+00 As usual, OFAT designs are blind to interactions, so that if they really exist, the inte...
2017 Jul 10
1
Re: Ubuntu 16.04 libvirt-guests.sh [6917] - running guests under URI address default: no running guests
Well, I see newer versions of libvirt on Launchpad so I could just add PPA repository and install newer version from there. Would that work? 2017-07-10 15:11 GMT+02:00 Andrea Bolognani <abologna@redhat.com>: > On Mon, 2017-07-10 at 14:20 +0200, Jędrek Domański wrote: > > Andrea, > > > > I have libvirt version 1.3.1. I am looking at > > libvirt.org/sources and see