Displaying 20 results from an estimated 4000 matches similar to: "Plotting a function that includes logical operators"
2020 Jan 18
1
How to get an object name from C?
(earlier I sent it as html by mistake).
Hi,
How can I get from C an object name used as a function argument? I
have sample code in C that gives me access to the name of the function
being called:
SEXP xname(SEXP x)
{
const char *fun_name = CHAR(PRINTNAME(CAR(x)));
x = CDR(x);
const char *arg_name = isNull(TAG(x)) ? "" : CHAR(PRINTNAME(TAG(x)));
2016 Jul 18
4
[PATCH v2 0/3] mllib: Various fixes and changes to Getopt module.
v1 -> v2:
- Further fixes to Getopt int parsing.
- Completed the L/S changes.
- Fixed the test suite so it passes now. Also we don't need the
special-case tests for 64 bit arch.
Rich.
2016 Jul 18
3
[PATCH v4 0/2] mllib: Various fixes and changes to Getopt module.
v3 -> v4:
- Pushed the first patch upstream since it was ACKed.
- Prevent use of M except for the special virt-v2v options.
- Sort the options after added --help etc.
- Make corresponding fixes to the tests.
Rich.
2016 Jul 18
4
[PATCH v3 0/3] mllib: Various fixes and changes to Getopt module.
v2 -> v3:
- Add M variant and test it.
Rich.
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
Hi all,
This is a proposal for supporting keyword arguments to Sizer#add
following the thread below :
http://rubyforge.org/pipermail/wxruby-development/2008-March/001244.html
After a deeper look at lib/wx/keyword_ctors.rb and
lib/wx/keyword_defs.rb, I understood the whole thing :-).
I just reused and modified slightly the method args_as_list.
The new Sizer#add_item combines the features of add
2008 Mar 25
2
Combining logical operators to extract columns from a dataframe
Hi R-helpers,
I have a dataframe (called data) with 100 columns, the columns of which are
named with integers ranging from 1900 to 1999.
I wish to extract those columns which names are >=1950 and <=1970.
I tried:
data2<-subset(data,select=(names(data)>=1950 & names(data)<=1970))
but that doesn't work.
Any ideas?
Thanks! Mark
[[alternative HTML version deleted]]
2013 Jan 30
3
arithmetic and logical operators
Why, in R, does (0.1 + 0.05) > 0.15 evaluate to True? What am I missing
here? How can I ensure this (ostensibly incorrect) behavior doesn't
introduce bugs into my code? Thanks for your time.
Dave Mitchell
[[alternative HTML version deleted]]
2002 Jun 09
1
Logical operators
Hello,
I have a csv-file which looks like:
#### pwt6_r.csv ####
code;year;rgdpch
AGO;1998;1234
ALB;1998;3576
ARG;1998;#NA
SVN;1996;13439
SWE;1996;21492
AGO;1960;#NA
ALB;1960;2345
ARG;1960;4634
#### pwt6_r.csv ####
To import this file i call:
pwt6<-read.csv("d:/pwt6_r.csv",header=T,na.strings="#NA",sep=";")
Now I want to generate a new data.frame which include
2020 Feb 27
2
[Bug 1409] New: nft manpage makes confusing reference to logical operators
https://bugzilla.netfilter.org/show_bug.cgi?id=1409
Bug ID: 1409
Summary: nft manpage makes confusing reference to logical
operators
Product: nftables
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: nft
2016 Jun 24
2
[PATCH] RFC: OCaml tools: add and use a Getopt module
Add a new Getopt module to mllib, to parse command line arguments with
handlers close to the ones used with Arg, but using getopt(3) (actually
getopt_long_only) to do the real parsing. This allow us to provide
options for OCaml tools with a syntax similar to the C tools, and use
the additional features getopt offers and Arg does not.
Do a single-step conversion of Common_utils and all the OCaml
2007 Jul 17
3
logical operators priority
Dear R-users,
I haven?t found rules for logical operators. I need to select data according
the following rule:
Condition A & (Condition B | Condition C) How should I write it?? Is
Condition A & Condition B | Condition C correct or will R execute (Condition
A & Condition B) | Condition C ?
Thanks for your help.
Delphine Fontaine
Delphine Fontaine
Statistician
Statistics
2019 Sep 26
2
Optimizing functions using logical operators
Hi,
I’m looking at what the LLVM compilation chain does to optimize the following functions using logical operators. The one using integer type (t1 and t3) are optimized, but not the ones using float type (t2 and t4), even when using -O3 or -Ofast. Why is that ?
Thera are those kind of optimizations done in the LLVM source code?
Thanks.
bool t1(int v1)
{
return (2 + v1) == 7;
}
bool
2004 Oct 20
3
Selecting from a character vector with logical operators
I'm trying to select a subset from character vector using the logical operator >, but get the following error
6356 85 SOL 1 25 1 38E6
6357 85 SOL 1 27 1 38E6
6910 95 SOL 1 25 1 38E6
7152 98 SOL 1 19 1 38E6
7153 98 SOL 1 22 2 38E6
7154 98 SOL 1 28 1 38E6
>
2012 Jul 25
3
Select rows based on matching conditions and logical operators
Hi,
I have a dataset in which I would like to select rows based on matching
conditions and return the maximum value of a variable else return one row if
duplicate counts exist. My dataset looks like this:
PGID PTID Year Visit Count
6755 53121 2009 1 0
6755 53121 2009 2 0
6755 53121 2009 3 0
6755 53122 2008 1 0
6755 53122 2008 2 0
6755 53122 2008 3 1
6755 53122 2009 1 0
6755 53122 2009 2 1
6755
2013 Mar 06
3
About basic logical operators
Hello everyone,
I have a basic question regarding logical operators.
> x<-seq(-1,1,by=0.02)
> x
[1] -1.00 -0.98 -0.96 -0.94 -0.92 -0.90 -0.88 -0.86 -0.84 -0.82 -0.80 -0.78
[13] -0.76 -0.74 -0.72 -0.70 -0.68 -0.66 -0.64 -0.62 -0.60 -0.58 -0.56 -0.54
[25] -0.52 -0.50 -0.48 -0.46 -0.44 -0.42 -0.40 -0.38 -0.36 -0.34 -0.32 -0.30
[37] -0.28 -0.26 -0.24 -0.22 -0.20 -0.18 -0.16
2012 Mar 31
3
[PATCH (incomplete)] Rewrite virt-sysprep in OCaml.
This patch is incomplete but it illustrates the idea. virt-sysprep is
rewritten as a modular tool in OCaml.
Only the 'utmp' and 'hostname' operations are implemented at the
moment.
Rich.
2015 Oct 01
1
doveadm + ldap userdb
Hi!
OS: CentOS Linux release 7.1.1503 (Core)
Dovecot: 2.2.18
Run user listing - doveadm user '*', single user - work.
auth[20540]: segfault at 8 ip 00007fd554340c6b sp 00007ffc17c886e0 error
4 in libauthdb_ldap.so[7fd55433b000+a000]
dovecot: auth: Fatal: master: service(auth): child 20540 killed with
signal 11 (core dumped)
dovecot: auth: Error: net_connect_unix(auth-worker) failed:
2010 Sep 22
3
Passing a function as a parameter...
R-helpers:
If I want to pass a character name of a function TO a function, and then
have that function executed, how would I do this? I want
an arbitrary version of the following, where any function can be used (e.g.
I don't want the if-then statement here):
apply_some_function <- function(data,function_name)
{
if(function_name=="mean")
{
return(mean(data))
}
2007 Feb 16
0
11 commits - libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/.gitignore test/trace
libswfdec/swfdec_font.c | 4
libswfdec/swfdec_font.h | 2
libswfdec/swfdec_js_movie.c | 8 -
libswfdec/swfdec_script.c | 225 +++++++++++++++++++++++++++++++++++++++----
libswfdec/swfdec_script.h | 14 ++
test/.gitignore | 1
test/trace/Makefile.am | 6 +
test/trace/height4.swf |binary
test/trace/height4.swf.trace | 5
2004 Dec 06
0
convert Map shapes to logical matrices - for set operations
Hi, I have a little problem.
I'm trying to do the following:
Convert _projected_ shapes from a Map object into logical matrices.
That is, rasterize a shape into a logical "in-the-shape" and
"out-of-the-shape" matrix.
What I'm trying to do is get an 'equal-area' estimate of the area of
intersection between two overlapping shapes, without any concern about