Comments (4)
From [email protected] on March 10, 2014 05:08:58
This is not an issue, this is expected behavior as the exception says that the initial vector has duplicates: CombinatoricsVector=([apple, orange, apple, orange], size=4).
The method getNumberOfGeneratedObjects() can't calculate a number of the generated objects if the initial vector has duplicates and the generator should treat the vector as identical. In this case it throws a Runtime exception notifying the caller that number of the generated objects has to be calculated by another way. The permutation generator works correctly as it generates the correct objects.
from combinatoricslib.
From [email protected] on March 10, 2014 05:09:14
Owner: [email protected]
from combinatoricslib.
From [email protected] on March 18, 2014 14:51:03
Labels: -Type-Defect Type-Other
from combinatoricslib.
From [email protected] on June 19, 2014 05:18:42
Works per design
Status: WontFix
from combinatoricslib.
Related Issues (18)
- Compositions HOT 2
- factorial function should change HOT 2
- Name of Factory class should change HOT 1
- For ComplexCombinationGenerator add "number of elements in every group" HOT 1
- getNumberOfGeneratedObjects() returns long; ints only accepted by generateObjectsRange() HOT 1
- Use the Visistor pattern for ComplexCombinationIterator to avoid unnecessary creation of objects
- Add List#addAll(int index, Collection c) based Factory method
- License Missing HOT 1
- Friendly suggestion: Combinations with Repetition HOT 3
- permutation without repetition with selected object r from n things HOT 5
- Change factorial function in `combination` HOT 1
- Treat repeated elements of sinple permutation as identical HOT 2
- Publish to a public maven repo. HOT 2
- Using an iterator rather than a vector? HOT 2
- Need method to randomly sample SimpleCombination HOT 2
- The Simple combinations generator does not return other then {0,1,2,3} when asked to make combinations with those numbers HOT 1
- Maven Central Repo is weird HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from combinatoricslib.