B
Bonzo
Guest
I am following a Coding Train tutorial on youtube but I'm not allowed to link it here
I am looking into basic linear regression. I decided to represent each point with an array, and assign the array to a struct with an x and y value. I have done similar things in previous projects, but when I my code showed the values in the struct were either not assigned or accessed correctly I replaced the x and y variables to make sure I wasnt somehow interfering with builtin variables and replaced my array assignments with ds_list calls in a desperate effort to figure out what I am doing wrong. It is entirely possible I am making some small mistake, in which case I would appreciate someone to double check this code:
Error Message:
This happens when I try to place a second data point and the linear regression region is ran for the first time.
Step Event:
I am looking into basic linear regression. I decided to represent each point with an array, and assign the array to a struct with an x and y value. I have done similar things in previous projects, but when I my code showed the values in the struct were either not assigned or accessed correctly I replaced the x and y variables to make sure I wasnt somehow interfering with builtin variables and replaced my array assignments with ds_list calls in a desperate effort to figure out what I am doing wrong. It is entirely possible I am making some small mistake, in which case I would appreciate someone to double check this code:
Error Message:
This happens when I try to place a second data point and the linear regression region is ran for the first time.
Step Event: