convergence

R: Convergence problems with numerical integration

ぐ巨炮叔叔 提交于 2020-01-06 06:39:11
问题 Not sure if this numerical methods problem should really be here or in crossvalidated, but since I have a nice reproducible example I though I would start here. I am going to be estimating and fitting a bunch of distributions both to some large data sets and to data sets generated randomly from similar distributions. As part of this process I will be generating estimates for the conditional mean of various value ranges, including truncated and non-truncated values of the right tail. The

R: Convergence problems with numerical integration

戏子无情 提交于 2020-01-06 06:39:06
问题 Not sure if this numerical methods problem should really be here or in crossvalidated, but since I have a nice reproducible example I though I would start here. I am going to be estimating and fitting a bunch of distributions both to some large data sets and to data sets generated randomly from similar distributions. As part of this process I will be generating estimates for the conditional mean of various value ranges, including truncated and non-truncated values of the right tail. The

R: Convergence problems with numerical integration

烂漫一生 提交于 2020-01-06 06:38:51
问题 Not sure if this numerical methods problem should really be here or in crossvalidated, but since I have a nice reproducible example I though I would start here. I am going to be estimating and fitting a bunch of distributions both to some large data sets and to data sets generated randomly from similar distributions. As part of this process I will be generating estimates for the conditional mean of various value ranges, including truncated and non-truncated values of the right tail. The

General Minimum RESidual (GMRES) with ILU preconditioner

痞子三分冷 提交于 2020-01-04 09:06:17
问题 I'm trying to implement the ILU preconditioner in this GMRES code I wrote (in order to solve the linear sistem Ax = b. I'm trying with an easy tridiagonal SPD matrix of dimension 25x25. As you can see I'm calculating the preconditioner with spilu method. The code is running without error, but the solution is clearly wrong since, at the end of the code, I'm printing the norm of b and the norm of the product A*x. They are not nearly the same.. The code Run fine without preconditioner and

Geotools distance calculation fails with no convergence exception for several lat lon points

我怕爱的太早我们不能终老 提交于 2020-01-02 05:34:07
问题 I have a number of points which make getOrthodromicDistance method to fail with exception in geotools lib, while these points are valid lat lon points: Point which throws the exception (lat,lon): val p1= (5.318765,-75.786109) val p2= (-6.32907,106.09254) eg exception: No convergence for points 75°47,2'W 06°19,7'S and 106°05,6'E 05°19,1'N. java.lang.ArithmeticException: No convergence for points 75°47,2'W 06°19,7'S and 106°05,6'E 05°19,1'N. at org.geotools.referencing.GeodeticCalculator

How to prevent genetic algorithm from converging on local minima?

僤鯓⒐⒋嵵緔 提交于 2020-01-01 03:37:09
问题 I am trying to build a 4 x 4 sudoku solver by using the genetic algorithm. I have some issues with values converging to local minima. I am using a ranked approach and removing the bottom two ranked answer possibilities and replacing them with a crossover between the two highest ranked answer possibilities. For additional help avoiding local mininma, I am also using mutation. If an answer is not determined within a specific amount of generation, my population is filled with completely new and

PDF and CDF for Biased die using Matlab with Central Limit Theorem

末鹿安然 提交于 2019-12-24 18:47:37
问题 I am trying to plot the PDF and CDF for a biased die roll for 10^4 samples using Central Limit Theorem.(CLT) The die is biased or unfair where even sides are twice as likely as odd sides. Here is the diefaces = [1,3,2,4,6,2].What can I use in Matlab to find probability of an odd number in this case with CLT where Sn = X1 + X2 + ... + Xn , n = 40. Here is what I have tried so far. The part that I am struggling with is passing the samples which in this case is 10^4 and n=40. Appreciate any help

Out of memory using svmtrain in Matlab

别来无恙 提交于 2019-12-22 21:14:40
问题 I have a set of data that I am trying to learn using SVM. For context, the data has a dimensionality of 35 and contains approximately 30'000 data-points. I have previously trained decision trees in Matlab with this dataset and it took approximately 20 seconds. Not being totally satisfied with the error rate, I decided to try SVM. I first tried svmtrain(X,Y) . After about 5 seconds, I get the following message: ??? Error using ==> svmtrain at 453 Error calculating the kernel function: Out of