2d bimodal distribution filter

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












First, some infos about my goal:
I'm trying to create a model for somekind of a occupancy grid, which is more or less a matrix. Each cell describes a quadratic area (e.g. 1m²)



Now we have a station which measures a certain distance to an object, e.g. d and we assume that the station is in the middle of the grid. So normally we would "occupy" each cell that fits into the distance, which gives us somekind of a "marked box" in the occupancy grid.



Since d is not that accurate, we want to apply a probability using a normal distribution. Searching into this direction gives me the idea of a gaussian filter matrix (like it is often used in image processing), which could be applied to the grid by multiplying the grid-matrix with the gaussian filter matrix (which is filled with zeros to match the grid's dimensions). Thus, we don't need a convolution here, but only a possibilty to calculate the probability for a certain cell using the 2d gaussian kernel function.



But the gaussian filter doesn't not fit, because the expected value would only be a single cell in the grid (obviously the station itself instead of the object). Looking at the probability distribution the expected value would be the distance d and -d as well. Or figuratively speaking: We don't need a bell, but rather a ring.



So, is there any common filter or kernel function for such a bimodal distribution and/or are we in a totally wrong direction?







share|cite|improve this question

























    up vote
    0
    down vote

    favorite












    First, some infos about my goal:
    I'm trying to create a model for somekind of a occupancy grid, which is more or less a matrix. Each cell describes a quadratic area (e.g. 1m²)



    Now we have a station which measures a certain distance to an object, e.g. d and we assume that the station is in the middle of the grid. So normally we would "occupy" each cell that fits into the distance, which gives us somekind of a "marked box" in the occupancy grid.



    Since d is not that accurate, we want to apply a probability using a normal distribution. Searching into this direction gives me the idea of a gaussian filter matrix (like it is often used in image processing), which could be applied to the grid by multiplying the grid-matrix with the gaussian filter matrix (which is filled with zeros to match the grid's dimensions). Thus, we don't need a convolution here, but only a possibilty to calculate the probability for a certain cell using the 2d gaussian kernel function.



    But the gaussian filter doesn't not fit, because the expected value would only be a single cell in the grid (obviously the station itself instead of the object). Looking at the probability distribution the expected value would be the distance d and -d as well. Or figuratively speaking: We don't need a bell, but rather a ring.



    So, is there any common filter or kernel function for such a bimodal distribution and/or are we in a totally wrong direction?







    share|cite|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      First, some infos about my goal:
      I'm trying to create a model for somekind of a occupancy grid, which is more or less a matrix. Each cell describes a quadratic area (e.g. 1m²)



      Now we have a station which measures a certain distance to an object, e.g. d and we assume that the station is in the middle of the grid. So normally we would "occupy" each cell that fits into the distance, which gives us somekind of a "marked box" in the occupancy grid.



      Since d is not that accurate, we want to apply a probability using a normal distribution. Searching into this direction gives me the idea of a gaussian filter matrix (like it is often used in image processing), which could be applied to the grid by multiplying the grid-matrix with the gaussian filter matrix (which is filled with zeros to match the grid's dimensions). Thus, we don't need a convolution here, but only a possibilty to calculate the probability for a certain cell using the 2d gaussian kernel function.



      But the gaussian filter doesn't not fit, because the expected value would only be a single cell in the grid (obviously the station itself instead of the object). Looking at the probability distribution the expected value would be the distance d and -d as well. Or figuratively speaking: We don't need a bell, but rather a ring.



      So, is there any common filter or kernel function for such a bimodal distribution and/or are we in a totally wrong direction?







      share|cite|improve this question













      First, some infos about my goal:
      I'm trying to create a model for somekind of a occupancy grid, which is more or less a matrix. Each cell describes a quadratic area (e.g. 1m²)



      Now we have a station which measures a certain distance to an object, e.g. d and we assume that the station is in the middle of the grid. So normally we would "occupy" each cell that fits into the distance, which gives us somekind of a "marked box" in the occupancy grid.



      Since d is not that accurate, we want to apply a probability using a normal distribution. Searching into this direction gives me the idea of a gaussian filter matrix (like it is often used in image processing), which could be applied to the grid by multiplying the grid-matrix with the gaussian filter matrix (which is filled with zeros to match the grid's dimensions). Thus, we don't need a convolution here, but only a possibilty to calculate the probability for a certain cell using the 2d gaussian kernel function.



      But the gaussian filter doesn't not fit, because the expected value would only be a single cell in the grid (obviously the station itself instead of the object). Looking at the probability distribution the expected value would be the distance d and -d as well. Or figuratively speaking: We don't need a bell, but rather a ring.



      So, is there any common filter or kernel function for such a bimodal distribution and/or are we in a totally wrong direction?









      share|cite|improve this question












      share|cite|improve this question




      share|cite|improve this question








      edited 2 days ago
























      asked 2 days ago









      Indivon

      1012




      1012

























          active

          oldest

          votes











          Your Answer




          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "69"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2871918%2f2d-bimodal-distribution-filter%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2871918%2f2d-bimodal-distribution-filter%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What is the equation of a 3D cone with generalised tilt?

          Relationship between determinant of matrix and determinant of adjoint?

          Color the edges and diagonals of a regular polygon