search for: _n

Displaying 20 results from an estimated 104 matches for "_n".

2005 May 09
0
Central Asterisk Server and Asterisk VoIP Gateway
...bound channel => 1-96 What I'm trying to accomplish here is to create one huge trunk group where ALL incoming calls will be directed to the inbound context. On the same machine, /etc/asterisk/extensions.conf [general] MAIN_SERVER = IAX2/inbound:gateway@192.168.0.10 [inbound] exten => _N.,1,Dial(${MAIN_SERVER}/${EXTEN}) exten => _N.,2,Congestion exten => _N.,3,HangUp [outbound] exten => _N.,1,Dial(Zap/g1/${EXTEN}) exten => _N.,2,Congestion exten => _N.,3,HangUp On the main Asterisk server, I would have in /etc/asterisk/ extensions.conf: [general] GATEWAY = IAX2/o...
2005 Jan 13
1
problems with astcc
...r of sip phone disallow=all allow=gsm nat=yes qualify =1000 [adnan.007] username=adnan.007 type=peer secret=secret host=iptel.org disallow=all allow=gsm nat=yes qualify=1000 extensions.conf [general] static=yes writeprotect=no #include => /var/lib/astcc/astcc-exten.conf [incoming] exten => _N.,1,Dial(Zap/1) exten => _N.,2,DeadAGI(astcc.agi) exten => _N.,3,Hangup [from-sip] adnan.007=101 exten => _N.,1,DeadAGI(astcc.agi,${ACOUNTCODE},${EXTEN}) exten => _N.,2,Hangup Thanks In Advance. Adnan Ahmed.
2004 Sep 03
7
Dropping incompatible voice frame
Hi: i have a problem. Mi extensions.conf: exten => _N.,1,Setvar(VOICEMAILREQ=${EXTEN}) exten => _N.,2,SetAccount(${customer}) exten => _N.,3,SetCDRUserField(${VOICEMAILREQ:1}) exten => _N.,4,ResponseTimeout(5) exten => _N.,5,Background(ifyou) exten => _N.,6,Background(silence/1) exten => _N.,7,Background(ifyou) exten => _N....
2004 Nov 30
3
Relative subscripting
...owing. I have monthly a dataset with, among other things, "marketcap", and "return". I want to multiply return by the marketcap of the previous month. How do I do this? In STATA (which I have used frequently in the past) I would simply use an expression of the form return[_n]*marketcap[_n-1] I believe they call this relative subscripting. Is there something like this in R? On a completely different note, are there books on R? I read the "Getting Started" notes, but, while helpful, I would need more than those. Thanks, Toby
2005 Sep 14
4
*** saving files ***
...help :o( I want that my function saves result files in a for()-loop while it runs automatically. the filenames must be saved like: file_1 -> for 1. result file_2 -> for 2. result file_3 -> for 3. result and . . . file_n -> for n. result the file names are the same identified by _1, _2 , _3, ... , _n these files will loaded by a second function later in the same sequence (_1 to _n). how can I do that ... [[alternative HTML version deleted]]
2005 Aug 01
6
converting stata's by syntax to R
...s a maximum, and where this doesn't identify a unique observation, to keep just one anyway, not caring which. Those observations are indicated above by keep==1. (Note, keep <- c(1,1,1,0,0,1,0) would be fine too, but not c(1,1,1,0,0,0,1)). The stata code I would use is bys fam (wt): keep if _n==_N This is my (long-winded) attempt in R: # first keep those rows where wt=max_fam(wt) maxwt <- by(dat,dat$fam,function(x) max(x[,2])) maxwt <- sapply(maxwt,"[[",1) maxwt.dat <- data.frame("maxwt"=maxwt,"fam"=as.integer(names(maxwt))) dat <- merge(dat,ma...
2019 Mar 01
1
Surprising results from INTEGER_GET_REGION with ALTREP object
Dear Listmembers, wanting to learn more about ALTREP I wrote the following function to extract a subsequence from an integer vector: #include <Rinternals.h> SEXP integer_get_region(SEXP _x, SEXP _i, SEXP _n) { int i = INTEGER(_i)[0]; int n = INTEGER(_n)[0]; SEXP result = PROTECT(Rf_allocVector(INTSXP, n)); INTEGER_GET_REGION(_x, i, n, INTEGER(result)); UNPROTECT(1); return result; } For "shorter" vectors, the result is as expected: > dyn.load("altrep_int_region.so"...
2009 Apr 11
1
get_required_bits32() and alloca() -> corrupted stack
HiI'm trying to run CELT on Win32 but I'm running into some corrupted stack errors when using alloca(). When get_required_bits32() (in file cwrs.c:308) is called from get_required_bits() (in file cwrs.c:328) the 'K' parameter is 1 which means that the uint32 which is allocated on the stack only has 3 bytes instead of 4. This results in a corrupted stack in the following call to
2006 Jul 19
2
Stirling numbers
Hi anyone coded up Stirling numbers in R? [I need unsigned Stirling numbers of the first kind] cheers Robin -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743
2012 Jul 08
2
Notation for previous observation in a data frame
I've created a data frame in R, but in order to clean up some of the data, I need to set certain variable observations equal to the value of their previous observation (it would be conditional, but that part's less important right now). In Stata, I would simply set var = var[_n-1] in those cases. What is the R equivalent? [[alternative HTML version deleted]]
2011 Jan 21
3
complex transformation of data
Dear [R] people Could you please help with following data transformation. Any suggestions, hints, references and even guessing on performing any of the following steps are highly appreciated. Those transformations are crucial for my work. (n_, _n, j_, k_ signify numbers) SOURCE DATA: id cycle1 cycle2 cycle3 ? cycle_n 1 c c c c 1 m m m m 1 f f f f 2 m m m NA 2 f f f NA 2 c c c NA 3 a a NA NA 3 c c c NA 3 f f f NA 3 NA NA m NA ........................................... RESULT DATA1: id cyc1 cyc2 cyc3 ? cyc_n 1 cfm cfm cfm c...
2005 Dec 07
5
[PATCH] Arch-neutral balloon driver
...rvisor.h Sun Dec 4 19:12:00 2005 +++ b/linux-2.6-xen-sparse/include/asm-xen/asm-ia64/hypervisor.h Tue Dec 6 16:25:53 2005 @@ -52,4 +52,19 @@ #define mfn_to_pfn(x) (x) #define machine_to_phys_mapping 0 +// for drivers/xen/balloon/balloon.c +#ifdef CONFIG_XEN_SCRUB_PAGES +#define scrub_pages(_p,_n) memset((void *)(_p), 0, (_n) << PAGE_SHIFT) +#else +#define scrub_pages(_p,_n) ((void)0) +#endif +#define pte_mfn(_x) pte_pfn(_x) +#define INVALID_P2M_ENTRY (~0UL) +#define __pte_ma(_x) ((pte_t) {(_x)}) +#define phys_to_machine_mapping_valid(_x) (1) +#define kmap_flush_unused() do {} while (...
2012 Mar 27
1
[LLVMdev] Compiling integer mod
...9 movl %ecx, %eax imull %edx movl %edx, %eax shrl $31, %eax sarl $2, %edx addl %eax, %edx imull $18, %edx, %eax subl %eax, %ecx movl %ecx, %eax ret The visual studio compiler (/O2) instead issues the idiv instruction: PUBLIC _f ; Function compile flags: /Ogtpy ; COMDAT _f _TEXT SEGMENT _n$ = 8 ; size = 4 _f PROC ; COMDAT ; File c:\a.c ; Line 6 mov eax, DWORD PTR _n$[esp-4] inc eax cdq mov ecx, 18 ; 00000012H idiv ecx mov eax, edx ; Line 7 ret 0 _f ENDP _TEXT ENDS END
2007 May 14
0
[PATCH] x86: replace some intpte_t * casts
...h/x86/mm.c 2007-05-14 08:40:14.000000000 +0200 +++ 2007-05-14/xen/arch/x86/mm.c 2007-05-14 08:40:20.000000000 +0200 @@ -1017,7 +1017,7 @@ static void pae_flush_pgd( l3tab_ptr = &cache->table[cache->inuse_idx][idx]; _ol3e = l3e_get_intpte(*l3tab_ptr); _nl3e = l3e_get_intpte(nl3e); - _pl3e = cmpxchg((intpte_t *)l3tab_ptr, _ol3e, _nl3e); + _pl3e = cmpxchg(&l3e_get_intpte(*l3tab_ptr), _ol3e, _nl3e); BUG_ON(_pl3e != _ol3e); } @@ -1316,7 +1316,7 @@ static inline int update_intpte(intpte_t /* Macro that...
2004 Dec 22
0
weighted kernel density estimation
.... But i would like to estimate that density using weights according to the COS?? values that tells me if my observation is well represented on the factorial plan 1-2. I would like to use (1) instead of (2) where the w_i depends on the COS??, i hacked the MASS::kde2d function to do that. \hat{f}_n(x) = \frac{1}{n|H|} \sum_{i=1}^n w_i \times K\left[H^{-1}(x-X_i)\right] (1) \hat{f}_n(x) = \frac{1}{n|H|} \sum_{i=1}^n K\left[H^{-1}(x-X_i)\right] (2) I have uploaded to http://addictedtor.free.fr/testkde2dw the files : - plan12.pdf : my factorial plan 1-...
2005 May 28
4
Where to get monitor_tc.pl
Is there an other place than www.docum.org where one could get monitor_tc.pl? Docum.org seems to be down. Peter -- The bogosity meter just pegged.
2012 Aug 13
27
[RFC-v2 0/6] vhost-scsi: Add support for host virtualized target
...nab) - Fix upstream qemu conflict in hw/qdev-properties.c - Make GET_ABI_VERSION use int (nab + mst) - Drop unnecessary event-notifier changes (nab) - Fix vhost-scsi case lables in configure (reported by paolo) - Convert qdev_prop_vhost_scsi to use ->get() + ->set() following qdev_prop_netdev (reported by paolo) - Fix typo in qemu-options.hx definition of vhost-scsi (reported by paolo) - Squash virtio-scsi: use the vhost-scsi host device from stefan (nab) - Fix up virtio_scsi_properties[] conflict w/ upstream qemu (nab) - Drop usage of to_virtio_scsi() in virtio_scsi_set_status...
2012 Aug 13
27
[RFC-v2 0/6] vhost-scsi: Add support for host virtualized target
...nab) - Fix upstream qemu conflict in hw/qdev-properties.c - Make GET_ABI_VERSION use int (nab + mst) - Drop unnecessary event-notifier changes (nab) - Fix vhost-scsi case lables in configure (reported by paolo) - Convert qdev_prop_vhost_scsi to use ->get() + ->set() following qdev_prop_netdev (reported by paolo) - Fix typo in qemu-options.hx definition of vhost-scsi (reported by paolo) - Squash virtio-scsi: use the vhost-scsi host device from stefan (nab) - Fix up virtio_scsi_properties[] conflict w/ upstream qemu (nab) - Drop usage of to_virtio_scsi() in virtio_scsi_set_status...
2012 Aug 06
1
Windows link.exe error : libbrass.lib(brass_table.obj) : unresolved external symbol _inflateEnd
...0.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. cl.exe -showIncludes -nologo -c -Zi -I.. -I..\include -I..\common -I..\win32 -W3 -EHsc -DWIN32 -D__WIN32__ -D_WIN32 -D_WINDOWS -D "HAVE_VSNPRINTF" -D "HAVE_STRDUP" -D "_USE_32BIT_TIME_T" -D_CRT_SECURE_NO_DEPRECATE -I"C:\Users\qwerty\Deskt op\xapian-1.2.8\zlib-1.2.7" -O2 -MD -D NDEBUG /I ".." /I "..\testsuite" /I"..\backends\flint" /I"..\backends\chert" /I"..\ backends\brass" /Fo".\\" /Fd".\\" /Tp ".\xapian-compact...
2014 Mar 05
3
[LLVMdev] [cfe-dev] C++11 reverse iterators (was C++11 is here)
On 2014 Mar 4, at 20:23, Chandler Carruth <chandlerc at google.com> wrote: > On Tue, Mar 4, 2014 at 8:07 PM, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote: > There’s a decent selection of range adaptors in Boost.Range [1]. I’m not sure the license [2] allows copying the source (IANAL), but any reason not use the same names? I don’t see any reason to reinvent the