Hi petr, >Can the required density be understood as a piecewise >linear function going through 4 or 5 given points?
That is my problem. The function should be nonlinear. However, we can break it down to the first 3 or 4 points could be linear and then nonlinear function. On the later points can we apply sort of spline function or local polynomials? I did not succeed to reconstruct the sequence of points, through which the density curve should go. >The first point seems to be (0, 0.2). >Is 0.23 x-coordinate or y-coordinate? 0.23 should be y-coordinate. >The density function should have the definite integral >equal to 1. Is this true? Yes Petr Savicky. On Tue, Jan 31, 2012 at 1:41 PM, Petr Savicky <savi...@cs.cas.cz> wrote: > On Tue, Jan 31, 2012 at 12:40:35PM -0500, Val wrote: > [...] > > What I want is, > > > > 1- let the plot star from 0.2 in Y-axis rather than the minimum value, > Then > > goes up to 0.23 then stay flat. A slow drop when it reaches to 0.25 on > > X-axis. Finally, when it reaches at the coordinate of (0.21,0.3) stop > > instead of going down.. > > Hi. > > Can the required density be understood as a piecewise > linear function going through 4 or 5 given points? > > I did not succeed to reconstruct the sequence of points, > through which the density curve should go. > > > The first point seems to be (0, 0.2). > that is correct! > Is 0.23 x-coordinate or y-coordinate? > Y-coordinate > The point (0.21, 0.3) has lower x-coordinate than > the point 0.25 on X-axis. > > >The density function should have the definite integral > >equal to 1. Is this true? > Yes? > > Petr Savicky. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.