Matching widths of two different functions












0












$begingroup$


Say I have a rectangular function as follows $$f(x) =
begin{cases}
1 & text{$|x|$$leq$$x_0$} \[2ex]
0 & text{otherwise}
end{cases}$$



I want to match its width (which in this case is $2x_0$) to that of a Gaussian defined as, say, $exp(-2x^2/sigma^2)$ (i.e., $sigma^2$. I want to write some relation between $sigma^2$ and $x_0$). Is there a standard or conventional way to do this?










share|cite|improve this question









$endgroup$












  • $begingroup$
    A Gaussian is nonzero everywhere, so it has no width in the sense $f(x)$ has. On the other hand, the width of the bell curve is defined by the value of $sigma$. For example, $99.5$% of its surface area is under the curve on the interval $[-2sigma , 2sigma]$.
    $endgroup$
    – User123456789
    Dec 20 '18 at 10:39












  • $begingroup$
    There's no doubt that you're right. I'll try to explain myself a little better: In some calculations I made I assumed $f(x)$ to be a Gaussian function. Now, in some scenarios this assumption doesn't hold and $f(x)$ could take the form of a rectangular function. I was looking for a way to match the $sigma^2$ from the Gaussian I assumed to that of a width of a rectangular function. I realize that widths here mean something different for each function and the result wouldn't really be accurate.
    $endgroup$
    – FlyGuy
    Dec 20 '18 at 10:43












  • $begingroup$
    anyone with any ideas?
    $endgroup$
    – FlyGuy
    Dec 22 '18 at 14:47
















0












$begingroup$


Say I have a rectangular function as follows $$f(x) =
begin{cases}
1 & text{$|x|$$leq$$x_0$} \[2ex]
0 & text{otherwise}
end{cases}$$



I want to match its width (which in this case is $2x_0$) to that of a Gaussian defined as, say, $exp(-2x^2/sigma^2)$ (i.e., $sigma^2$. I want to write some relation between $sigma^2$ and $x_0$). Is there a standard or conventional way to do this?










share|cite|improve this question









$endgroup$












  • $begingroup$
    A Gaussian is nonzero everywhere, so it has no width in the sense $f(x)$ has. On the other hand, the width of the bell curve is defined by the value of $sigma$. For example, $99.5$% of its surface area is under the curve on the interval $[-2sigma , 2sigma]$.
    $endgroup$
    – User123456789
    Dec 20 '18 at 10:39












  • $begingroup$
    There's no doubt that you're right. I'll try to explain myself a little better: In some calculations I made I assumed $f(x)$ to be a Gaussian function. Now, in some scenarios this assumption doesn't hold and $f(x)$ could take the form of a rectangular function. I was looking for a way to match the $sigma^2$ from the Gaussian I assumed to that of a width of a rectangular function. I realize that widths here mean something different for each function and the result wouldn't really be accurate.
    $endgroup$
    – FlyGuy
    Dec 20 '18 at 10:43












  • $begingroup$
    anyone with any ideas?
    $endgroup$
    – FlyGuy
    Dec 22 '18 at 14:47














0












0








0





$begingroup$


Say I have a rectangular function as follows $$f(x) =
begin{cases}
1 & text{$|x|$$leq$$x_0$} \[2ex]
0 & text{otherwise}
end{cases}$$



I want to match its width (which in this case is $2x_0$) to that of a Gaussian defined as, say, $exp(-2x^2/sigma^2)$ (i.e., $sigma^2$. I want to write some relation between $sigma^2$ and $x_0$). Is there a standard or conventional way to do this?










share|cite|improve this question









$endgroup$




Say I have a rectangular function as follows $$f(x) =
begin{cases}
1 & text{$|x|$$leq$$x_0$} \[2ex]
0 & text{otherwise}
end{cases}$$



I want to match its width (which in this case is $2x_0$) to that of a Gaussian defined as, say, $exp(-2x^2/sigma^2)$ (i.e., $sigma^2$. I want to write some relation between $sigma^2$ and $x_0$). Is there a standard or conventional way to do this?







integration gaussian-integral rectangles






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 20 '18 at 10:30









FlyGuyFlyGuy

13




13












  • $begingroup$
    A Gaussian is nonzero everywhere, so it has no width in the sense $f(x)$ has. On the other hand, the width of the bell curve is defined by the value of $sigma$. For example, $99.5$% of its surface area is under the curve on the interval $[-2sigma , 2sigma]$.
    $endgroup$
    – User123456789
    Dec 20 '18 at 10:39












  • $begingroup$
    There's no doubt that you're right. I'll try to explain myself a little better: In some calculations I made I assumed $f(x)$ to be a Gaussian function. Now, in some scenarios this assumption doesn't hold and $f(x)$ could take the form of a rectangular function. I was looking for a way to match the $sigma^2$ from the Gaussian I assumed to that of a width of a rectangular function. I realize that widths here mean something different for each function and the result wouldn't really be accurate.
    $endgroup$
    – FlyGuy
    Dec 20 '18 at 10:43












  • $begingroup$
    anyone with any ideas?
    $endgroup$
    – FlyGuy
    Dec 22 '18 at 14:47


















  • $begingroup$
    A Gaussian is nonzero everywhere, so it has no width in the sense $f(x)$ has. On the other hand, the width of the bell curve is defined by the value of $sigma$. For example, $99.5$% of its surface area is under the curve on the interval $[-2sigma , 2sigma]$.
    $endgroup$
    – User123456789
    Dec 20 '18 at 10:39












  • $begingroup$
    There's no doubt that you're right. I'll try to explain myself a little better: In some calculations I made I assumed $f(x)$ to be a Gaussian function. Now, in some scenarios this assumption doesn't hold and $f(x)$ could take the form of a rectangular function. I was looking for a way to match the $sigma^2$ from the Gaussian I assumed to that of a width of a rectangular function. I realize that widths here mean something different for each function and the result wouldn't really be accurate.
    $endgroup$
    – FlyGuy
    Dec 20 '18 at 10:43












  • $begingroup$
    anyone with any ideas?
    $endgroup$
    – FlyGuy
    Dec 22 '18 at 14:47
















$begingroup$
A Gaussian is nonzero everywhere, so it has no width in the sense $f(x)$ has. On the other hand, the width of the bell curve is defined by the value of $sigma$. For example, $99.5$% of its surface area is under the curve on the interval $[-2sigma , 2sigma]$.
$endgroup$
– User123456789
Dec 20 '18 at 10:39






$begingroup$
A Gaussian is nonzero everywhere, so it has no width in the sense $f(x)$ has. On the other hand, the width of the bell curve is defined by the value of $sigma$. For example, $99.5$% of its surface area is under the curve on the interval $[-2sigma , 2sigma]$.
$endgroup$
– User123456789
Dec 20 '18 at 10:39














$begingroup$
There's no doubt that you're right. I'll try to explain myself a little better: In some calculations I made I assumed $f(x)$ to be a Gaussian function. Now, in some scenarios this assumption doesn't hold and $f(x)$ could take the form of a rectangular function. I was looking for a way to match the $sigma^2$ from the Gaussian I assumed to that of a width of a rectangular function. I realize that widths here mean something different for each function and the result wouldn't really be accurate.
$endgroup$
– FlyGuy
Dec 20 '18 at 10:43






$begingroup$
There's no doubt that you're right. I'll try to explain myself a little better: In some calculations I made I assumed $f(x)$ to be a Gaussian function. Now, in some scenarios this assumption doesn't hold and $f(x)$ could take the form of a rectangular function. I was looking for a way to match the $sigma^2$ from the Gaussian I assumed to that of a width of a rectangular function. I realize that widths here mean something different for each function and the result wouldn't really be accurate.
$endgroup$
– FlyGuy
Dec 20 '18 at 10:43














$begingroup$
anyone with any ideas?
$endgroup$
– FlyGuy
Dec 22 '18 at 14:47




$begingroup$
anyone with any ideas?
$endgroup$
– FlyGuy
Dec 22 '18 at 14:47










0






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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
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%2f3047383%2fmatching-widths-of-two-different-functions%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3047383%2fmatching-widths-of-two-different-functions%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa