|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Additional smoothing algorithmI have developed some code for a new smoothing algorithm, which adds some functionality to gnuplot which I have long been desperate for: a way to plot cumulative distribution functions directly from data. The new algorithm is similar to (and built on top of) "smooth frequency". Like "smooth frequency", it sorts data points in ascending order of x-values, but then replaces each y-value with the cumulative sum of all y-values to the left of the current data point. I have submitted the code as patch 1962130. Please take a look and tell me what you think. The changes are small and very well localized. Best, Ph. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Demo! (was: Additional smoothing algorithm)I have thrown a quick demo up on my website, to show what this algorithm does: http://philipp-janert.com/cumulative/ Best, Ph. On Sunday 11 May 2008 20:44, Philipp K. Janert wrote: > I have developed some code for a new smoothing > algorithm, which adds some functionality to gnuplot > which I have long been desperate for: a way to plot > cumulative distribution functions directly from data. > > The new algorithm is similar to (and built on top of) > "smooth frequency". Like "smooth frequency", it > sorts data points in ascending order of x-values, but > then replaces each y-value with the cumulative sum > of all y-values to the left of the current data point. > > I have submitted the code as patch 1962130. > > Please take a look and tell me what you think. The > changes are small and very well localized. > > Best, > > Ph. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Demo! (was: Additional smoothing algorithm)Hello,
This is a great facility, well done! This is very useful for people, like me, that do Monte-Carlo simulations. Now after all that hard work, here come the bit where people ask for improvements! I was thinking... ...it would be very useful, when plotting 3D data, to have projection on the back walls of the splot. For example, if I have some experimental points in 3D space which I think should be roughly follow a Gaussian distribution. I could make some histogram projection on to the back wall (xz-plane) which would bin all y points. A similar histogram could be bin the x and z points and project on to the yz and zy plane, respectively. Having said that, it might be a bit complicated to mix 2D and 3D plots in this way. Maybe, this would be easily achieved simply as a 2D plot. i.e. 3D data goes in and a 2D projection along some specified axis come out as a histogram. Dan. On 12 May 2008, at 05:25, Philipp K. Janert wrote: > > I have thrown a quick demo up on my website, to > show what this algorithm does: > http://philipp-janert.com/cumulative/ > > Best, > > Ph. > > > On Sunday 11 May 2008 20:44, Philipp K. Janert wrote: >> I have developed some code for a new smoothing >> algorithm, which adds some functionality to gnuplot >> which I have long been desperate for: a way to plot >> cumulative distribution functions directly from data. >> >> The new algorithm is similar to (and built on top of) >> "smooth frequency". Like "smooth frequency", it >> sorts data points in ascending order of x-values, but >> then replaces each y-value with the cumulative sum >> of all y-values to the left of the current data point. >> >> I have submitted the code as patch 1962130. >> >> Please take a look and tell me what you think. The >> changes are small and very well localized. >> >> Best, >> >> Ph. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > gnuplot-beta mailing list > gnuplot-beta@... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Demo! (was: Additional smoothing algorithm)On Monday 12 May 2008 15:08, Daniel Farrell wrote:
> Hello, > > This is a great facility, well done! This is very useful for people, > like me, that do Monte-Carlo simulations. Now after all that hard > work, here come the bit where people ask for improvements! I was > thinking... > > ...it would be very useful, when plotting 3D data, to have projection > on the back walls of the splot. For example, if I have some > experimental points in 3D space which I think should be roughly follow > a Gaussian distribution. I could make some histogram projection on to > the back wall (xz-plane) which would bin all y points. A similar > histogram could be bin the x and z points and project on to the yz and > zy plane, respectively. > > Having said that, it might be a bit complicated to mix 2D and 3D plots > in this way. Maybe, this would be easily achieved simply as a 2D plot. > i.e. 3D data goes in and a 2D projection along some specified axis > come out as a histogram. It can be done, but it takes multiple steps: 1) Plot the X and Y projections as 2D plots. Make sure the plot borders are of zero width (i.e. the plot fills the image). You can do this in the cvs version by using the new commands "set lmargin screen 0" etc. 2) Make the 3D plot as a composite in which the data itself is plotted in 3D, and the previous 2D projections are read back in using "with image" and mapped onto the side walls of the view box. Ethan > Dan. > > > On 12 May 2008, at 05:25, Philipp K. Janert wrote: > > > > I have thrown a quick demo up on my website, to > > show what this algorithm does: > > http://philipp-janert.com/cumulative/ > > > > Best, > > > > Ph. > > > > > > On Sunday 11 May 2008 20:44, Philipp K. Janert wrote: > >> I have developed some code for a new smoothing > >> algorithm, which adds some functionality to gnuplot > >> which I have long been desperate for: a way to plot > >> cumulative distribution functions directly from data. > >> > >> The new algorithm is similar to (and built on top of) > >> "smooth frequency". Like "smooth frequency", it > >> sorts data points in ascending order of x-values, but > >> then replaces each y-value with the cumulative sum > >> of all y-values to the left of the current data point. > >> > >> I have submitted the code as patch 1962130. > >> > >> Please take a look and tell me what you think. The > >> changes are small and very well localized. > >> > >> Best, > >> > >> Ph. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save > > $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > gnuplot-beta mailing list > > gnuplot-beta@... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > gnuplot-beta mailing list > gnuplot-beta@... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -- Ethan A Merritt Courier Deliveries: 1959 NE Pacific Dept of Biochemistry Regular Mail: Mailstop 357742 Health Sciences Building University of Washington - Seattle WA 98195-7742 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Demo! (was: Additional smoothing algorithm)Hi,
Ethan, that's really cool I'm definitely going to try that! Will have to go in the gnuplot porn gallery when it's done :o) Dan. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
| Free Forum Powered by Nabble | Forum Help |