2 days agoFitting a log-normal distributionHello, I’m trying to plot a fit to a log-normal distribution. I have the statistics and machine learning toolbox, but I am confused as how to apply the log-normal fit function to this data. Below is some minimum working code to create a log-normal distribution, but I do not know…Machine Learning2 min read
2 days agoHow to use Gamma distribution as the kernel of Naive Bayes in MATLAB code?Here I have a group of data which following the Gamma distribution and now I want to use Naive Bayes method to fit this data. I tried the original function named ‘fitcnb’ and knowing that it providing 4 types of distribution: ‘box’, ‘epanechnikov’, ‘normal’ and ‘triangle’. Now I want to…Machine Learning2 min read
2 days agoHow do I apply the T-Test correctly?Hi everyone, I am not sure if I apply the T-Test correctly to my data. In the description it says “H = TTEST(X) performs a t-test of the hypothesis that the data in the vector X come from a distribution with mean zero, and returns the result of the test…Machine Learning2 min read
2 days agoWhy can’t read german umlauts from a .txt file?I need to read german text from a file and translate it into ascii-numbers. Of course it contains german umlauts ‘ä’, ‘ö’, ‘ü’ and the character ‘ß’ as well. After using fscanf my resulting string contains only the ‘?’, where these chars were. Changing the encoding in Matlab doesn’t work…Matlabsolution2 min read
2 days agosample from arbitrary continuous distributionSay I have a very complicated probability distribution function: x^(-2)*y^(-3)*exp(-z/t), where x y z t are all continuous positive numbers. The integration in x,y,z,t space is not 1, so there has to be some scaling factor. How can I devise a function, or is there a convenient function with some…Machine Learning2 min read
May 11As predicted delayed outputs settle in NarXI applied my code to data simplenarx_dataset. To do this I performed the following steps: 1 — I have done autocorrelation and cross correlation peaks to see that gives us more information. ID = 1, FD = 1 2 — I have found H, where H = 5 3 —…Matlabsolution3 min read
May 11Classification problem parsed as regression problem when Split Criterion is supplied to fitcensembleHi I ran a hyperparameter optimization to find the best parameters for a two-class classification problem using fitcensemble. But when I try to use these I get a strange warning: Warning: You must pass ‘SplitCriterion’ as a character vector ‘mse’ for regression. What is wrong with my code? The warning…Machine Learning2 min read
May 11I have extracted an image object, now i need to determine the line of symmetry for that objectI have an object of which there is a symmetrical pattern, i want to plot a line of symmetry and then determine the array co-ordinates of the boundary point of the that line of symmetry. For example consider below: How could i go about detecting the line of symmetry for…Machine Learning3 min read
May 11Finding inflection points of a noisy signalHi, I’d like to find the inflection points of this noisy signal. Do you have any suggestions on how to do this? fs = 100; %Hz dt = 1 / fs; t = 0:dt:2; x = sin(3 * pi * t) - (3 * cos(11 * pi * t)); x_noise = x + (1.5…Machine Learning2 min read
May 11How to properly extract data from text file?I have a data in a text file that looks basically like this: LineType: 1 PlayMode: Single GameType: OneBalloon LineType: SumR3 TranslationSpeed: 0 SensivityBalloon1: 0.09 SensivityBalloon2: 0 LevelLength: 20 Season: Summer Backgrounddifficulty: Easy StarScore[1] DistanceScore[1] StabilityScore[1] ScoreFrames[1] Frame[1] Time[1] ForcePlayer1[1] BalloonPath_X[1] BalloonPath_Y[1] CharacterPath_X[1] CharacterPath_Y[1] IsInactive[1] 0 0 0 0 0 0 30653 0 4.225888 0 2.150741 0 1 0 0…Machine Learning2 min read