From: Alan via ntg-context <ntg-context@ntg.nl>
To: John Kitzmiller <jkitzm@gmail.com>
Cc: Alan <braslau.list@comcast.net>,
John Kitzmiller via ntg-context <ntg-context@ntg.nl>
Subject: Re: m-graph label
Date: Tue, 26 Jul 2022 12:26:08 -0600 [thread overview]
Message-ID: <20220726121036.669b24bf@boo.my.domain> (raw)
In-Reply-To: <CAHYz2AW=oRHm=cREet+C2M=Ks59J-CUHNPht8Z-PVYuP+0oWgg@mail.gmail.com>
On Thu, 21 Jul 2022 17:56:45 -0400
John Kitzmiller <jkitzm@gmail.com> wrote:
> (Apologies for double-dipping, but usage direction for the
> least-squares fit extension in m-graph would be a gift.)
The least-squares fit (to a polynomial) is a deterministic calculation,
not an arbitrary non-linear search. As such, it is very robust.
Certain (useful) functions, a Gaussian peak for example, can be
suitably transformed to a polynomial function, so these are handled as
well, robustly.
Examples are given as comments in mp-grap.mpiv that you can follow.
I can send you off-list an adapted version of the original John Hobby
documentation, with extensions described.
Note that the m-graph module is simply a re-write of the John Hobby
graph macros, taking advantage of floating-point MetaPost (thus
simplified).
%%%%%%%%%%%%%%%%%%%%%%%%
I have been working on a completely new luagraph module that does much
in lua. It has, notably, arbitrary coordinate systems.
This has been a moving target as I put more and more into lua
and less and less in Metapost. I have also been playing chase with the
development of luametatex (and have fallen behind).
Alan
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2022-07-26 18:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-16 17:21 John Kitzmiller via ntg-context
2022-07-20 13:48 ` Alan via ntg-context
2022-07-21 21:56 ` John Kitzmiller via ntg-context
2022-07-26 17:51 ` Alan via ntg-context
2022-07-30 21:04 ` John Kitzmiller via ntg-context
2022-07-26 18:26 ` Alan via ntg-context [this message]
2022-07-30 21:14 ` John Kitzmiller via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220726121036.669b24bf@boo.my.domain \
--to=ntg-context@ntg.nl \
--cc=braslau.list@comcast.net \
--cc=jkitzm@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).