similar to: "locking" functions

Displaying 20 results from an estimated 20000 matches similar to: ""locking" functions"

2011 Jul 10
1
Chebyshev Inequality — MVUE
Hello, I was interested in trying to write an R script to calculate a UCL for a lognormal distribution using the Chebyshev Inequality — MVUE Approach (based on EPA’s guidance found in http://www.epa.gov/oswer/riskassessment/pdf/ucl.pdf). This looks like it should be straight forward, but I am need to calculate an MVUE for the population mean and an MVUE for the population variance, which requires
2001 Mar 01
2
aggregated CHM help files
A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2490 bytes Desc: not available Url : https://stat.ethz.ch/pipermail/r-help/attachments/20010301/996dcd36/attachment.bin
2001 Feb 19
4
self documenting workspaces, and the proper role of the dot
again I ask for some suggestions : I don't mind being told to RTFM as long as I get a few hints as to where to look <g> suppose I want to document the set of functions and vectors that I have in a workspace, and I would like to make that workspace 'self documenting' .. so I could open up that particular workspace in a few months and know what xdiff contained ..etc.
2006 Oct 17
1
About compositional data analysis
The compositional data xi=(x_i1,x_i2,...,x_in), for each fixed i , xij>0, and sum(xij)=1; I want to compare the mean( u_i) of several groups i.e. H0: u_1=u_2=...=u_N or H0: u_11=u_21=...=u_N1 Are there any ANOVA tpye tools to do this work in R? Thanks, WEN S Q [[alternative HTML version deleted]]
2001 Mar 01
1
Kohonen's SOM in R?
Is there an implementation of the SOM ('Self Organizing Map') procedure in R ? I am aware of the implementations of Sammon mapping, multidimensional scaling and, somewhat peripherally, principal curves and projection pursuit .. but not SOM per se as far as I can see. Am I missing something? --------------------- for anyone interesed in SOM I found Samuel Kaski's thesis
2001 Mar 01
1
SOM code
The (slow) SOM code can be found on my web page (towards the bottom) http://peabody.vanderbilt.edu/depts/psych_and_hd/faculty/wallern/ On Thu, 1 Mar 2001, John Aitchison wrote: > > Is there an implementation of the SOM ('Self Organizing Map') procedure in > R ? > > I am aware of the implementations of Sammon mapping, multidimensional > scaling and, somewhat
2001 Mar 02
1
inc function .. more generally, var arguments
Hi I'd like to be able to write a simple 'increment' function (like inc in pascal or ++ in C++) that takes the argument and increments it 'permanently' ie so that z<-1; inc(z) # no assignment; z #2 I can see how to do it with a global variable but that is not what I want - I want to modify the object that is the actual argument.. I have looked at assign(), <<
2002 Nov 20
2
Defining/Checking constants in packages
In a package I am writing I need to use the constant pi (3.14..., that is) which is already defined in R. However, how can I make sure the user has not changed its value before loading the package? If this happened, is a reference to `pi' in the package going to use the user-defined value or the value defined in base? I thought I could solve the issue by including the following line in my
2001 Feb 24
1
PMML- Predictive model markup language
Hi all, I caught a passing reference to PMML on the WEKA list (I think) .. an XML way of communicating 'data mining models'. I am of the opinion that XML is a 'good thing' and I would for instance like to see a standard XML way of communicating the content and context of datasets (eg of timeseries) but it has been a long day and my internet connection is slow and so I have
2001 Mar 03
1
vector argument to rnorm
Is this intended behaviour ? > length(rnorm(c(100))) [1] 100 > length(rnorm(c(100,0,1))) [1] 3 > length(rnorm(length(c(100,1,2)))) [1] 3 > length(rnorm(c(100,0,1,2,3,4,5))) [1] 7 ie if you pass in a single element vector the first element of that is taken as the desired n (OK) , but otherwise the length of the vector argument is taken as the desired n. I came across this usage in
2009 Jul 09
5
Best way to export values from a function?
Maybe there is a great website out there or white paper that discusses this but again my Google skills (or lack there of) let me down. I would like to know the best way to export several doubles from a function, where the doubles are not an array. Here is a contrived function similar to my needs: multipleoutput<-function(x) { squared<-x^2 cubed<-x^3 exponentioal<-exp(x)
1999 Apr 06
2
Funny warning message
Hi Sometimes (and I haven't yet found out what causes it) I get a message: Warning: ingnored non-function "t" I think it may be either when I have done a Ctl-C to break in or I may have inadvertently named a variable after one of the many system or other functions. I have seen names other than "t". Anyway, the only way I can get rid of it is to exit and restart. I
2020 Mar 12
2
[PATCH 0/1] *** SUBJECT HERE ***
On 12.03.20 19:09, Christoph Anton Mitterer wrote: > On Wed, 2020-03-11 at 21:39 +0100, Thomas Koeller wrote: > IMO, the idea itself sounds not the best... one must assume that such > invoked programs are not written "safe"... and thus an attacker could > potentially cause the system to run such programs a huge number of > times. As the anticipated action of the program is
2015 Mar 30
3
Segfault with match()
This is admittedly a contrived example, but... data(housing, package ="MASS") x <- housing$Type + housing$Sat match(x, unique(x)) Hadley -- http://had.co.nz/
2008 Mar 01
5
rspec with continuations: very strange
I appear to have written code which travels backwards through time: http://www.vimeo.com/742590 This disturbs me immensely. If anyone can explain it, that would be cool. I think it''s an illusion brought about by how RSpec wraps the code it executes, and by the sheer weirdness of continuations. -- Giles Bowkett Blog: http://gilesbowkett.blogspot.com Portfolio:
2008 Feb 07
1
ActiveRecord 'find_or_initialize_by' dynamic finder bug? Ignoring conditions.
Hello all, I just ran into something that I think is a bug, and I would like to confirm with the core team whether this is expected/desired behavior or if this is a bug that I should file and develop failing tests for (I doubt I have the active record method_missing fu to actually patch it). Test Scenario: I would like to find or initialize a new user and base the find on the users email
2001 Feb 18
1
confused about names()
Hi all .. there is no doubt a simple answer to this, but it eludes me. In the first session below ( with jarque.bera.test) you will see that p.value prints with a name of X-squared . This is easily fixed by changing the source to assign a more appropriate name - no name is assigned in the source listing below (the original source code of jarque.bera.test() from tseries).. but what I
2013 Mar 13
3
[LLVMdev] PROPOSAL: struct-access-path aware TBAA
Based on my understanding of her design, following is one obtuse motivating example: -------------------------- class A; class B; int foo(A* p, B* q) { p->a_int_field = 2; q->another_int_field = 3; return p->a_int_field; // !!!!! } ---------------------------------- the *-statement can be optimized into "return 2" if optimizer can prove type-A does not include
2005 Mar 09
9
Unit testing + instance variables
After *much* digging and playing around, I finally figured out how to unit test instance variables that are created by actions. It was more difficult than I expected. It seems like there should have been a more straight forward way to do this. Can someone enlighten me? A simplified and somewhat contrived example of what I am current doing: Thanks. Matt >> # My Controller of interest
2004 Jun 22
3
[Q] GET_DIM() crash on Windows only
I have the following contrived code in package format. On Solaris and Mac OS X, code runs just fine. On Windows, it crashes the R environment with the "Send Bug Report" dialog. I tried R 1.8.1 (Win2K) and R 1.9 (WinXP) binaries with the same result. PCs otherwise appear properly configured for creating R packages. Anything blatantly wrong? Suggestions? TIA Relevant files from package