Hi Raul,

Thanx for responding.  There is nothing special about Y - it is a list of
50 numbers which is a machine learning fit of the supplied function and
could simply be considered a noisy version of it.  I .e Y is something like

   R =. (50?1e3)%1e3
   Y =. 50 1$^((-i.50)%10) + R-mean R

where 'mean' is:

mean =. +/ % #


(R -mean R) is intended to be a zero mean sample of Gaussian noise -
however I cant seem to find how to draw Gaussian samples in J without
implementing the Ziggurat algorithm or such  - a tip here would also be
appreciated!


On Thu, Apr 6, 2017 at 8:38 AM, Raul Miller <[email protected]> wrote:

> Without an example value for Y, it is difficult to say what is going on.
>
> (A significant question is: are we seeing an issue with plot, or is it
> really that plot is doing things right but there is some sort of issue
> with the data?)
>
> --
> Raul
>
>
> On Thu, Apr 6, 2017 at 8:15 AM, Michael Goodrich
> <[email protected]> wrote:
> > I am trying to plot two 1-d data vectors in an overlay plot namely:
> >
> > plot 0 {"1 (50 1$^((-i.50)%10)),: 0 {"1 Y
> >
> > Y is a data vector s.t.
> >
> >      $ Y
> > 50 1
> >
> >
> > following the pattern:
> >
> > 'key sin(exp),cos(exp)' plot (;(sin,:cos)@:^) -: >: i:3j100
> >
> > However is does not work:
> >
> > The problem seems to be in how to package the data for plot.  try as I
> > might, I cant discern the problem from the plot examples or doc.
> >
> > Help would be appreciated!
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm




-- 
Dominus enim Iesus Ecclesiae Suae et,

-Michael


"Let your religion be less of a theory and more of a love affair."
                                             - G.K. Chesterton
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to