-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please send help #3
Comments
Issue one is easy to fix - you're not calling the function, you're just storing it somewhere else. So, instead of writing You're very, very nearly there with the terrain bit! You need to write a loop that will go across all the different mid-points for your matrix. So, in the first iteration, the function will apply your diamond and square steps functions to the entire matrix. Then, in the second iteration, it will apply the diamond and then the square steps to all four sub-matrices. And then, in the third, to all 16 sub-matrices... There are lots of ways of doing that loop. You could do it with your median of medians method (something like |
errrr I really really broke it trying to make an adjustable by Error in ncol(mat) : could not find function "i" In addition: Warning messages: |
on a related note.....https://xkcd.com/1739/ |
so I am trying to combine the pieces of square function and diamond function and matrix creation.
issue one: I defintely am not actually making a matrix. Its just spitting out the function back at me in black. And with no error. So I am a little lost on where to start in fixing that haha.
issue two: Once I am able to make the matrix without messing everything up, how do I tell it to perform the function on smaller and smaller squares? I'm assuming there needs to be a if statement that if at some point you can't go smaller to break the loop. So can I do the median of the median of the median of y or x until it is = or smaller than 0?
The text was updated successfully, but these errors were encountered: