numerical-methods
Generating Full Period/Full Cycle Random Numbers or Permutations Similar to LCG but without odd/even
I wish to generate psuedo-random numbers/permutations that \'occupy\' a full period or full cycle within a range. Usually an \'Linear Congruential Generator\' (LCG) can be used to generate such sequen[详细]
2023-01-14 09:07 分类:问答Multivariate Bisection Method
I need an algorithm to perform a 2D bisection method for solving a 2x2 non-linear problem. Example: two equations f(x,y)=0 and g(x,y)=0 which I want to solve simultaneously. I am very familiar with th[详细]
2023-01-12 15:59 分类:问答Making C code plot a graph automatically
I have written a program which writes a list of data to a \'.dat\' f开发者_运维技巧ile with the intention of then plotting it separately using gnuplot.Is there a way of making my code plot it automati[详细]
2023-01-12 11:17 分类:问答How to compute exact complexity of an algorithm?
Without resorting to asymptotic notation, is tedious step counting the only way to get the time complexity 开发者_开发问答of an algorithm? And without step count of each line of code can we arrive at[详细]
2023-01-09 16:46 分类:问答How should I deal with floating numbers that numbers that can get so small that the become zero
So I just fixed an interesting bug in the following code, but I\'m not sure the approach I took it the best:[详细]
2023-01-02 13:55 分类:问答incremental way of counting quantiles for large set of data
I need to count the quantiles for a large set of data. Let\'s assume we can get the data only through some portions (i.e. one row of a large matrix). To count the Q3 quantile one need to get all the[详细]
2022-12-30 13:37 分类:问答How do I obtain the machine epsilon in R?
Is there a constant that stores the machine epsilo开发者_开发技巧n in R?Try .Machine$double.eps -- and .Machine which on my 32-bit Linux machine yields this:[详细]
2022-12-26 05:14 分类:问答positive semi-definite matrices and numerical stability?
i\'m trying to do factor analysis for a co-occurrence ma开发者_JAVA技巧trix(C) , which is computed from the term-document matrix(TD) as follows:[详细]
2022-12-17 13:53 分类:问答Converting a repeating binary number to decimal (express as a series?)
Given a binary number that repeats, for example 0.(0011) or 0.0(101), how would one go about converting it to decimal?[详细]
2022-12-17 03:50 分类:问答Fastest numerical solution of a real cubic polynomial?
R question: Looking for the fastest way to NUMERICALLY solve a bunch of arbitrary cubics known to have real coeffs and three real roots. The polyroot fu开发者_StackOverflow社区nction in R is reported[详细]
2022-12-15 16:27 分类:问答
加载中,请稍侯......