Results 1 to 2 of 2
  1. #1
    osenna66 is offline Member
    Join Date
    Jul 2011
    Posts
    18
    Rep Power
    0

    Default Approximate derivative of matrix with respect to X

    This method will approximate the “derivative” of the matrix with respect to x. What this means, is as the matrix indices moves from left to right, how do the values of the matrix change?

    We can approximate this by creating a new matrix based off of m where the value of the new matrix m′ is computed using the following formula:
    m′[i][j] = (m[i−1][j +1]−m[i−1][j −1])+2∗(m[i][j +1]−m[i][j −1])+(m[i+1][j +1]−m[i+1][j −1]

    Note that in cases on the edge, such as when i = 0 for example, you should treat the value at the location as being the same as the one that was not off the matrix. For example, if the formula says to take m[-1][0], you should use the value for m[0][0] instead.

    The header should look something like this:
    public static int[][] approximateDerivativeX(int[][] m)

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,321
    Rep Power
    25

Similar Threads

  1. help in matrix
    By Engineer in forum New To Java
    Replies: 7
    Last Post: 10-06-2010, 01:26 PM
  2. does Double.parseDouble respect unicode
    By halyal in forum NetBeans
    Replies: 6
    Last Post: 09-06-2010, 03:18 PM
  3. Take a derivative
    By McChill in forum New To Java
    Replies: 2
    Last Post: 05-03-2009, 04:32 AM
  4. Help with matrix
    By susan in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 04:37 AM
  5. Urgent-Imp-Displaying message with respect to system time
    By garinapavan in forum New To Java
    Replies: 1
    Last Post: 08-03-2007, 02:17 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •