[dylan-foundry/statistics] 5fcadc: Provide type aliases.

GitHub <[email protected]> Mon, 16 Nov 2015 18:51:56 -0800
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <564a964cf166a_1d0d3fd255ecf2b881379@hookshot-fe3-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-foundry/statistics
  Commit: 5fcadc9a14b10502e0e7853296b2fcedce12d429
      https://github.com/dylan-foundry/statistics/commit/5fcadc9a14b10502e0e7853296b2fcedce12d429
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-11-17 (Tue, 17 Nov 2015)

  Changed paths:
    M statistics-base/extrema.dylan
    M statistics-base/library.dylan
    M statistics-base/mean.dylan
    M statistics-base/scale.dylan
    M statistics-base/statistics-base.lid
    A statistics-base/types.dylan
    M statistics-base/variance.dylan
    M tests/statistics-base-test-suite.dylan

  Log Message:
  -----------
  Provide type aliases.

This introduces some type aliases:

* <double-float-vector>: limited(<vector>, of: <double-float>). This
  is now used throughout.
* <double-float?-vector>: This is for when data might be missing. It
  is not yet used.
* <numeric-sequence>: This will be used in generic function definitions.
  It is currently a type union of <double-float-vector> and
  <double-float?-vector>, but in the future, it should be more loosely
  defined to permit other numerical values and other sorts of sequences.

It also adds double-float-vector, a conversion function to take a regular
vector containing doubles and convert it to a <double-float-vector> to
remove some boilerplate.

* statistics-base/types.dylan
  (<double-float-vector>,
   <double-float?-vector>,
   <numeric-sequence>,
   double-float-vector): New definitions.

* statistics-base/library.dylan
  (module statistics-base): Export new definitions.

* statistics-base/statistics-base.lid: Build types.dylan.

* statistics-base/extrema.dylan: Update to use new aliases & definitions.

* statistics-base/mean.dylan: Likewise.

* statistics-base/scale.dylan: Likewise.

* statistics-base/variance.dylan: Likewise.

* tests/statistics-base-test-suite.dylan: Likewise.

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter