search for: multiset

Displaying 13 results from an estimated 13 matches for "multiset".

Did you mean: multiseat
2011 Mar 25
0
applying random functions to multisets
Hi, I am solving following problem: Suppose I have some multiset: > multiset <- c("a","a","c","d","d") and rules, which operate with it (for simplicity not writen in R functions) > rule1: "a" -> c("a","b") > rule2: "a" -> c("a","c") &gt...
2008 Apr 06
3
Multiset Permutations
Dear R users, I want to perform an exact permutation of multisets. I have looked at the coin package, but it doesn't seem to offer what I am looking for. I want to perform permutations (exact - without duplications) on multisets of scalars (e.g., the multiset 0,0,1,2,2). I want to output all the possible permutations into a data frame so that each multiset p...
2008 Dec 11
3
generate combination multiset (set with repetition)
Hi, This has been asked before but not sufficiently answered from what I could find. How do you create combinations with repetitions (multisets) in R? If I have > set <- array(1:3) And I want to choose all combinations of picking 2 numbers, I want to get a print out like [,1] [,2] [1,] 1 1 [2,] 1 2 [3,] 1 3 [4,] 2 2 [5,] 2 3 [6,] 3 3 subsets(set, 2, allow.repeat=T) should work, but I can&...
2015 Apr 17
3
[LLVMdev] RFC: Indirect Call Promotion LLVM Pass
...nts become available in llvm IR. b. Current implementation only transforms the first hot target, the rest of the targets are never considered even if they are relatively hot. We are evaluating a new solution which depends on the presence/availability of functions counts in clang. We form a sorted multiset of all functions counts. A given indirect target is considered for inlining if the target’s count at the call site falls within one of the ranges that form the top 0-10%, 10-20% or 20-30% of the sorted multiset. We’ve added checks which become stricter as the target count falls farther away from t...
2007 Oct 16
0
New package: sets
Dear useRs, The new 'sets' package made it to CRAN, supporting: o data structures for sets, fuzzy sets, multisets, and fuzzy multisets o the use of (most) R objects as elements o standard set operations (union, intersection, complement, Cartesian product, power set, ...) o support for several fuzzy logic systems An introductory vignette is also available. David and Kurt. __________________________________...
2007 Oct 16
0
New package: sets
Dear useRs, The new 'sets' package made it to CRAN, supporting: o data structures for sets, fuzzy sets, multisets, and fuzzy multisets o the use of (most) R objects as elements o standard set operations (union, intersection, complement, Cartesian product, power set, ...) o support for several fuzzy logic systems An introductory vignette is also available. David and Kurt. __________________________________...
2008 Apr 06
1
R, VR, and Debian
...stallation, and installed R on it, along with several packages -- including e1071 and the "Bundle" VR -- by means of the Debian package manager. Most of the time, R works fine. But not always. Just now, I wanted to try the code suggested by Johannes H?sing for "Stroparia"'s Multiset Permutation question. The first line is "library(e1071)" -- this failed because: library(e1071) Loading required package: class Error: package 'class' could not be loaded In addition: Warning message: there is no package called 'class' in: library(pkg, character.only = T...
2012 Jun 05
0
[LLVMdev] SUBALLOCATOR
...//dl.dropbox.com/u/8437476/works/countertree/index.html ). I am writting you because I think a part of this library, the suballocator, can be useful to you. The suballocator works with the allocator for to improve the allocation speed of fixed size elements, like in the Standard Library list, set, multiset, map and multimap. In the benchmark done with CLANG 3.0 ( http://dl.dropbox.com/u/8437476/works/countertree/suballocator.html#benchmark ), the suballocator a) Provide *fast allocation* *(around 2 times faster than the std::allocator of CLANG 3.0 )* b) *Return memory to the allocator, for to be...
2007 May 10
0
Need help imputing missing data using mice and outputting them
...I've been doing: imputationmodel<-mice( MyData[ c (grep("Q20_", names(MyData)) ) ] ) multipledataset<-complete(imputationmodel,action="long") write.table(as.data.frame(lapply(multipledataset,function(x) {as.numeric(is.element(x,5))} )), sep="\t",file="multiset.txt",row.names=F) The last line (write.table) makes it so that all the values get changed into 0s and 1s. How could I output the original imputed values (in my case, they should be 1s or 2s or 3s or 4s or 5s) rather than 0s and 1s? Thank you very much! Dimitri ______________________________...
2005 Nov 06
0
R for Psychometrics
...r various "psychometric" techniques, and I am regularly updating and expanding what is there. I now have (wholly or partially), or have planned -- gifi package (update to homals on CRAN). Code for multiple correspondence analysis, nonlinear principal component analysis, nonlinear multiset canonical correlation analysis. Implements everything in Gifi (1990) or SPSS Categories, and then some. Status: done. -- aspect package (optimizing functions of correlation matrices over transformations/quantifications of the variables -- functions implemented are sums of eigenvalu...
2014 Feb 07
2
suggestion for "sets" tools upgrade
First, let me apologize in advance if this is the wrong place to submit a suggestion for a change to functions in the base-R package. It never really occurred to me that I'd have an idea worthy of such a change. My idea is to provide an upgrade to all the "sets" tools (intersect, union, setdiff, setequal) that allows the user to apply them in a strictly algebraic style. The
2006 Feb 20
9
a complex availability problem
Ok, this is a hard one and I just thought I''d see if people on the list had any suggestions on how they would approach this, I''ve not started to implement the rails to handle this yet as I''m still at the paper planning phase. I''m building an app that has to handle availability for travel packages. The complexity comes in that a person can choose a start
2008 Nov 14
1
Generating unique permutations of a vector
Hi all, I try to generate sets of strategies that contain probability distributions for a defined number of elements, e.g. imagine an animal that can produce 5 different types of offspring and I want to figure out which percentage of each type it should produce in order to maximize its fitness. In order to do so, I need to calculate the fitness for all potential strategies. As an example, if I