All Questions
Tagged with numeric-precision algorithms
4 questions
1
vote
1
answer
1k
views
Is new object creation necessary with BigDecimal?
Problem description:
I am running performance test of calculation of PI number with primitives and with BigDecimal class.
Calculation of PI with primitives is around 5-6 times faster than the same ...
1
vote
3
answers
517
views
Avoid numeric errors in Naive Bayes method
I am implementing the Naive Bayes method with Gaussian distribution.
The problem that I have is that the variance used on the Gaussian curve (calculated from a training set) is REALLY small. They ...
5
votes
2
answers
510
views
Trivially Sortable Encoding for Arbitrary-Precision Decimals
I'm looking for a reasonably(*) space-efficient way to encode arbitrary-precision decimals (e.g. BigDecimal), such that when sorting the bit-pattern of the encodings lexicographically, the numbers ...
9
votes
5
answers
26k
views
How to handle large numbers? [duplicate]
Well, I've just started doing puzzles and it's so annoying to see puzzles which are easy to do but also need to handle very large numbers. That's the problem.
Say I have to deal with numbers like 10 ^...