Displaying 20 results from an estimated 2000 matches similar to: "How does the r-distribution function work"
2008 Dec 16
8
sliding window over a large vector
Hi all,
I have a very large binary vector, I wish to calculate the number of
1's over sliding windows.
this is my very slow function
slide<-function(seq,window){
n<-length(seq)-window
tot<-c()
tot[1]<-sum(seq[1:window])
for (i in 2:n) {
tot[i]<- tot[i-1]-seq[i-1]+seq[i]
}
return(tot)
}
this works well for for reasonably sized vectors. Does
2008 Oct 02
1
nls with plinear and function on RHS
Dear R gurus,
As part of finding initial values for a much more complicated fit I want to
fit a function of the form y ~ a + bx + cx^d to fairly "noisy" data and have
hit some problems.
To demonstrate the specific R-related problem, here is an idealised data
set, smaller and better fitting than reality:
# idealised data set
aDF <- data.frame( x= c(1.80, 9.27, 6.48, 2.61, 9.86,
2006 May 16
6
Netherlands zaptel.conf
Hello,
I have configured my TDM01B Card (1 FXO Port ) as follows (below) but it will
not pick up an incoming call.
Any suggestions/tools to see what the problem is? I have looked at zttool
where this line changes but I don't understand what it means (The last digit
changed from 0 to 1)
Total/Conf/Act: 4/ 1/ 1
/etc/zaptel.conf
fxsks=4
loadzone=nl
defaultzone=nl
2006 May 22
2
Recommended SIP phones?
I am dying here with linphone (not sure if it is crap software or just me
being an idiot) but out of the box debian installations of two linphones fail
with a "Got SIP response 415 "Unsupported Media Type" back from 192.168.1.3"
Can anybody recommend a particular SIP soft phone that broadly satisfies the
following criteria?
1. Run on linux.
2. Simple to use and setup.
3. Is
2006 May 22
1
Initial second lost on SIP phones
I find that when asterisk answers the phone, the initial second or so is lost.
I can imagine that echotraining can do this, but this is between SIP phones
and I don't think there is any echotraining enabled?
BTW. Asterisk is definitely playing sounds that first second (The CLI would
indicate that it would play a beep but I just won't hear it).
Any comments appreciated.
Pieter
2009 Feb 26
3
Moving Average
I am looking for some help at removing low-frequency components from a signal, through Moving Average on a sliding window.
I understand thiis is a smoothing procedure that I never done in my life before .. sigh.
I searched R archives and found "rollmean", "MovingAverages {TTR}", "SymmetricMA".
None of the above mantioned functions seems to accept the smoothing
2006 May 25
2
Modules for X100P
Can anybody recommend a reseller in Europe (Netherlands) for modules for the
X100P (FXO and FXS modules)?
Cost, support are important.
Also, what is a reasonable price for an X100P in Europe? Is there a difference
in price between OEM and Boxed versions?
Thanks,
Pieter
2008 Aug 05
1
optimize simultaneously two binomials inequalities using nlm( ) or optim( )
Dear R users,
I?m trying to optimize simultaneously two binomials inequalities (used in
acceptance sampling) which are nonlinear solution, so there is no simple
direct solution. Please, let me explain shortly the the problem and the
question as following.
The objective is to obtain the smallest value of 'n' (sample size)
satisfying both inequalities:
(1-alpha) <= pbinom(c, n, p1)
2006 Oct 16
3
lda
I'm trying to do a linear discriminant analysis on a dataset of three
classes ("Affinities"), using the MASS library:
> data.frame2 <- na.omit(data.frame1)
>
> data.ld = lda(AFFINITY ~ ., data.frame2, prior = c(1,1,1)/3)
Error in var(x - group.means[g, ]) : missing observations in cov/cor
What does this error message mean and how can I get rid of it?
Thanks!
Pieter
2008 Jun 24
2
Invalid argument while mounting
I get the following error when trying to mount: Nothing changed (in any
case not that I know of). I get the same error from both nodes. Please
assist.
# mount /u02
mount.ocfs2: Invalid argument while mounting /dev/sdd1 on /u02. Check
'dmesg' for more information on this error.
/etc/fstab:
/dev/sdd1 /u02 ocfs2
_netdev,datavolume,nointr 0 0
2006 Aug 15
4
escaping html?
Hi
I have a wysiwyg html ditor in my app. How do I escape html written to the
database and encoding when I display the content>
Ty
Pieter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060815/d8c50941/attachment.html
2006 Aug 11
6
css - location of files.
Hi all.
I have the following scenario.
http://myapp/site1 is using <%= stylesheet_link_tag ''myapp_standard'' %>
to define the stylesheet for layout, I have myapp_standard.css in
/public/stylesheets and it works fine.
However, in the stylesheet I define a image to use for my site
background. eg:
html, body{
background-image: url(mysite_background.jpg);
padding-top:
2019 Oct 03
2
Home Directory Creation
> Tried your config here and it works. My debug log looks as follows for
> the first brief IMAP session:
>
> Oct? 3 22:28:56 drieka dovecot: imap-login: Login:
> user=<diederik-jan>, method=PLAIN, rip=::1, lip=::1, mpid=21949,
> secured, session=<OtQjbweUvpIAAAAAAAAAAAAAAAAAAAAB>
> Oct? 3 22:28:56 drieka dovecot: imap(diederik-jan): Debug: Added
> userdb
2015 Oct 15
3
How can I set the advertised value of MTU for virbr0 interface?
Hi all,
I want to set the advertised value of MTU
for virbr0 interface on a Fedora 21 host to 1454
to accommodate the installation of new VMs for testing purposes.
The aforementioned host is an OpenStack VM actually,
which explains the need for a lower than 1500 MTU.
I noticed Pieter Hollants' patch to set
dhcp-option=<number>,"<value>" for an interface,
but
2009 Sep 15
4
Protecting against kernel NULL-pointer derefs
All,
Given the amount of NULL-pointer dereference vulnerabilities in the
FreeBSD kernel that have been discovered of late, I've started looking
at a way to generically protect against the code execution possibilities
of such bugs.
By disallowing userland to map pages at address 0x0 (and a bit beyond),
it is possible to make such NULL-pointer deref bugs mere DoS'es instead
of code
2012 Dec 17
4
Samba3 joining W2k3 as member server
Hi list,
I have tried with all my might to get a samba3 server (Ubuntu 12.04.1 LTS) to join a Windows 2003 domain as a member server, without any luck. I have used,from memory, the official way of doing this (aka, from the samba.org website). No matter what settings I use in smb.conf, the server always joins as a domain controller. This doesn't seem to break the domain how ever. All I am
2010 Apr 14
3
tincd without root privileges
hey,
is there a way to run tinc on a (linux) box, with a public ip,
but on which i don't have root privileges ?
the server just connects nodes (behind natted firewall) & relays
their traffic, so no need for tap/tun interface on the box itself.
ptr_
--
http://www.L45.be/voidpointer
0493 52 5009
2005 Feb 26
4
Managing lot''s of VPN''s
Dear Shorewall list,
I need to connect a firewall to various remote sites (VPN''s) at the same
time, but i do not have control of any of the remote subnets and/or the
given IP address: The firewall is just a client in all of the VPN''s.
So, as i see it, the remote subnets (mostly rfc1918) are doomed to get
into conflict when they happen to be connected at the same time. For
2010 Jun 28
4
Error 400 : could not find template
Hello,
I did make a stupid fault: not commiting changes to version control :-(
After the installation of puppet-dashboard, I added a recipe to add
report = true to puppet config files on clients.
Now all Puppet clients don''t update because of an error...
What can be the various reasons for an ''400'' error??
I guess it has something to do with rights.
Jun 28 09:52:36 pm
2008 Jul 27
3
license server platform authentication
I am trying to get a program running under wine that needs to connect to
a flexlm license server. Unfortunately I get denied when authentication
because the license is a 'windows' license and I am running the program
from a linux platform.
Is there a way to make wine authenticate as windows? I am using the
'windows version' of the program, so I am assuming that there is