pspp-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-commits] [SCM] GNU PSPP branch, master, updated. v0.8.4-50-gaad0ae


From: John Darrington
Subject: [Pspp-commits] [SCM] GNU PSPP branch, master, updated. v0.8.4-50-gaad0ae4
Date: Fri, 16 Jan 2015 10:05:42 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU PSPP".

The branch, master has been updated
       via  aad0ae4913ecd01ccc954f8828623ad5da35cd1b (commit)
      from  bf4006fb1f0554d72dc5c3c136cca9caa7491700 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit aad0ae4913ecd01ccc954f8828623ad5da35cd1b
Author: John Darrington <address@hidden>
Date:   Tue Jan 6 07:25:21 2015 +0100

    New module to perform decimal floating point arithmetic for charts.
    
    This change adds a small module to perform floating point arithmetic
    with a decimal base, and uses it to calculate the graticule marks for
    charts.
    
    Rationale:  Graticule marks want to be displayed in decimal.  However
    not all decimal values can be represented in a double precision
    floating point binary.  This approach pushes the precision loss from
    the value of the mark, to the position on the chart - we don't
    particularly care if a tick mark is a fraction of a pixel out of place,
    but we do care if 4.0 is displayed as 3.9999999999
    
    Reviewed-by: Ben Pfaff

-----------------------------------------------------------------------

Summary of changes:
 src/math/automake.mk                               |    1 +
 src/math/chart-geometry.c                          |  130 ++++-
 src/math/chart-geometry.h                          |    7 +-
 src/math/decimal.c                                 |  572 ++++++++++++++++++++
 src/math/decimal.h                                 |  114 ++++
 src/math/histogram.c                               |   15 +-
 src/output/cairo-chart.c                           |   48 +-
 src/output/cairo-chart.h                           |    4 +-
 src/output/charts/boxplot-cairo.c                  |    2 +-
 src/output/charts/np-plot-cairo.c                  |    8 +-
 src/output/charts/plot-hist-cairo.c                |   21 +-
 src/output/charts/roc-chart-cairo.c                |    4 +-
 src/output/charts/scatterplot-cairo.c              |    4 +-
 src/output/charts/scree-cairo.c                    |    4 +-
 src/output/charts/spreadlevel-cairo.c              |    4 +-
 tests/automake.mk                                  |   31 +
 .../misc.c => tests/math/chart-geometry-test.c     |   73 ++--
 tests/math/chart-geometry.at                       |   35 ++
 tests/math/chart-get-scale-test.c                  |   96 ++++
 tests/math/decimal-test.c                          |  347 ++++++++++++
 tests/math/decimal.at                              |    7 +
 21 files changed, 1431 insertions(+), 96 deletions(-)
 create mode 100644 src/math/decimal.c
 create mode 100644 src/math/decimal.h
 copy src/libpspp/misc.c => tests/math/chart-geometry-test.c (53%)
 create mode 100644 tests/math/chart-geometry.at
 create mode 100644 tests/math/chart-get-scale-test.c
 create mode 100644 tests/math/decimal-test.c
 create mode 100644 tests/math/decimal.at


hooks/post-receive
-- 
GNU PSPP



reply via email to

[Prev in Thread] Current Thread [Next in Thread]