-
Notifications
You must be signed in to change notification settings - Fork 0
/
NEWS
766 lines (496 loc) · 23.6 KB
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
----------------------------------------------------------------
CHANGES IN transport VERSION 0.15-4 (2024-09-15)
OVERVIEW
o CRAN maintenance update. Replace ancient "Calloc"s by
"R_Calloc"s (and so on). Remove WSGeometry from suggested
packages as it is no longer on CRAN.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.15-3 (2024-05-19)
OVERVIEW
o Works around a (very) rare infinite loop in the
networkflow algorithm that seems to have to do with
numerical precision by introducing a (generous) iteration
limit and making the loop interruptible by the user.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.15-2 (2024-05-10)
OVERVIEW
o Bug fix. The function gen_cost0 introduced in the
previous version was only designed for 2d scenarios.
There is now another function gen_cost0d for the
"single thread, more than 2d" case.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.15-1 (2024-05-09)
OVERVIEW
o Dependence on R version >= 4.1 is now in DESCRIPTION.
This R version was required before, but rather than
being stated explicitly, installation failed with an
obscure error. Reported by Chao Zhang [#1].
o Bug fix in internal function gen_cost used to compute
distance matrices. For points at (almost) the same
position negative entries of squared cost matrices
were possible. Fixed.
o The computation of distance matrices is almost twice
as fast now by use of a new internal function gen_cost0
when running functions in a single thread.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.15-0 (2024-03-26)
OVERVIEW
o unbalanced is now a generic function with methods for
class pgrid (corresponding to the previous function
unbalanced) and wpp (new functionality).
o plot.ubtrans has been replaced by plot.ut_grid and there
is a new method plot.ut_wpp, where ut_grid and ut_wpp
are (now) the classes of the outputs of the two unbalanced
methods when setting output="all".
----------------------------------------------------------------
CHANGES IN transport VERSION 0.14-8 (2024-03-09)
OVERVIEW
o Bug fix in function unbalanced. The function returned zero
even if only one of the measures was the zero measure
(for p=1, after reduction).
----------------------------------------------------------------
CHANGES IN transport VERSION 0.14-7 (2024-02-18)
OVERVIEW
o Maintenance update to fix a new note in CRAN checks.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.14-6 (2023-07-01)
OVERVIEW
o Skip new semidiscrete test on CRAN as the special
configurations only give slightly perturbed results
(which seem random in spite of the seed).
Re-reduce the tolerance everywhere else.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.14-5 (2023-06-28)
OVERVIEW
o Increase tolerance in new semidiscrete test. Previously,
it failed for some of the more special configurations,
in particular if there was no long double.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.14-4 (2023-06-25)
OVERVIEW
o Replace broken link.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.14-3 (2023-06-24)
OVERVIEW
o Bug fix in src/Makevars. Object files in subfolders were
not cleaned properly. This had no practical implications
for the most usual installation procedures, but has been
fixed now.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.14-2 (2023-06-11)
OVERVIEW
o We thank Peter Jacobs for contributions.
o Bug fixes: The C code underlying the functions computing
semidiscrete optimal transport for p=2 resulted in a
segmentation fault for certain (not so rare) input
combinations. Also there was a memory leak. Both are
fixed.
---------------------------------------------------------------
CHANGES IN transport VERSION 0.14-1 (2023-05-21)
OVERVIEW
o We thank Mauro Ferrante and Oskar Nenoff for contributions.
o Bug fix: The output of `transport.default` with
method="networkflow" was typically wrong if both mass
vectors a and b had only one non-zero entry each.
o Bug fix: function `unbalanced` with output="all" (and
sometimes output="rawres") threw an error if one of a and b
had only one non-zero entry.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.14-0 (2023-04-15)
OVERVIEW
o Computation of semidiscrete optimal transport for p=1
did not work with newer versions of CGAL due to conflicting
C++ standards. This appears to be fixed completely.
o The colors of the mass points in plots of semidiscrete
optimal transport plans can now be controlled via a parameter
pcol.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.13-2 (2023-01-30)
OVERVIEW
o Important bug fix in the recently added function
unbalanced. If p=1 and image a has more total mass than
image b, then the returned solution was typically wrong
if there are pixels with zero mass.
In most cases this came with suspicious warning messages
and the computed distance was still correct.
Fixed.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.13-1 (2022-10-31)
OVERVIEW
o Add WSGeometry to suggested packages.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.13-0 (2022-10-30)
OVERVIEW
o New function unbalanced for computing unbalanced transport
(and unbalanced Wasserstein distance) between pgrids.
o New function plot.ubtrans for plotting the result from
unbalanced.
o Resolves recent R CMD check warnings due to C function
declarations without prototypes.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.12-5 (2022-10-07)
OVERVIEW
o Bug fix: transport.pgrid with method "networkflow" and a
non-square grid was typically wrong. Seems to be correct now.
o Bug fix: transport.pgrid with method "shielding" caused an
error if the grid had fewer than 200 points in total
(e.g. 14x14). Largely fixed (a problem may remain for very
small grids (e.g. below 4x4), but this is clearly not an
application case for the shielding method anyway).
o Bug fixes: some non-standard parameter combinations caused
errors in the transport function. Fixed.
o pgrid.plot has a new option "angle" to make the heads of
the arrows wider for very small transport problems
----------------------------------------------------------------
CHANGES IN transport VERSION 0.12-4 (2022-08-13)
OVERVIEW
o Minor changes in the internal code for easier maintenance.
o Minor fixes in NEWS and man files to make the newest
package check happy.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.12-3 (2022-08-10)
OVERVIEW
o We thank Jiahua Chen, Michel Groppe and Heather Turner
for contributions.
o Several bugs in connection with mass/weight vectors not
being ordered or containing zeroes have been fixed.
o The function wasserstein1d is considerably faster now for
large datasets.
SIGNIFICANT CHANGES
o Speed improvement for function wasserstein1d due to a more
efficient counting procedure.
BUG FIXES
o Function wasserstein1d. In previous versions the result was
typically wrong if locations were not ordered *and* varying
weights were specified. Fixed.
o Function wasserstein1d. There was an uncaught error if one
or several of the (inner) weights were zero. This is fixed
and the function works with general non-negative weights
(with positive sum) now.
o Function transport.default and wasserstein. For the
default networkflow method the from and to indices in the
returned transport plan referred to the vectors of positive
entries in a and b (rather than the full vectors a and b).
In particular this typically led to wrong distance
computations in the function wasserstein if entries with
mass 0 were present (the Wasserstein distance / cost
returned by the function transport with option fullreturn
= TRUE was correct). Fixed.
o Function transport.default. There was an uncaught error
if in one of the vectors only one of the masses was
non-zero. Fixed.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.12-2 (2020-03-11)
OVERVIEW
o We thank Christoph Weitkamp for contributions.
o Fixes a serious bug in the main transport function.
For method = "networkflow" and mass vectors a, b
containing zeroes, the results were typically wrong before.
o Function transport_track now uses argument fps (frames
per second) instead of delay.time for generation of
animated gifs. This argument is used consistently.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.12-1 (2019-08-07)
OVERVIEW
o Fixes a compilation error under Solaris.
o Returns to using a Makevars file instead of the
configure script for the same openmp functionality
as in the previous version.
o We thank Brian Ripley for pertinent hints on both.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.12-0 (2019-08-05)
OVERVIEW
o We thank Nicolas Bonneel for contributions.
o The main workhorse function transport has a new method
"networkflow". This is currently the recommended method for
solving the discrete optimal transport problems directly
via a simplex algorithm (it is fastest unless special
structure is known, e.g. p=2).
The method is available for objects of classes pp, wpp,
pgrid. The code is based on the modified version of
the Lemon Library provided by Nicolas Bonneel.
https://github.com/nbonneel/network_simplex
o A new configure script checks for openmp support at install time.
If supported the installed version allows the user to run a
multithreaded version of the "networkflow" method via a new
argument "threads" in the appropriate transport functions.
o Fixes a bug in the transport.track function which could cause
an error when trying to generate a gif using this function.
Also adds some minor customization options to this function.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.11-2 (2019-06-12)
OVERVIEW
o We thank Luc Lehericy for contributions.
o A bug in the function transport.wpp was fixed which
for strongly unbalanced weights created sometimes
an infinite loop.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.11-1 (2019-04-17)
OVERVIEW
o We thank Samuel Ackerman for contributions.
o The functions subwasserstein and transport.pp are
faster now. Depending on the example the speed increase
can be very substantial.
SIGNIFICANT CHANGES
o Function subwasserstein is much faster now for large objects
because distance matrixes are not precomputed anymore. Set
the new argument precompute=TRUE if you must reproduce the
old behaviour.
BUG FIXES
o Due to the misplacement of a line of code, epsilon-scaling
in the auction algorithm was not working properly for the
function transport.pp. In some simple pathological examples
the algorithm took very long. Reported by Samuel Ackerman.
Fixed.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.11-0 (2019-02-03)
OVERVIEW
o Several improvements regarding exact and approximate
computations of Wasserstein distances, including a
bug fix.
NEW FUNCTIONS
o subwasserstein
Allow for approximate computation of Wasserstein distances
via subsampling. Code by Jörn Schrieber
SIGNIFICANT CHANGES
o Function wasserstein can now also compute Wasserstein
distances in the vanilla case of two mass vectors with
cost matrix.
BUG FIXES
o The result was incorrectly normed when applying function
wasserstein to objects of class "wpp" with prob=TRUE. Fixed.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.10-0 (2018-12-24)
OVERVIEW
o Semidiscrete optimal transport can now also be
computed for p=1 (in addition to p=2) if CGAL is
available. Adapt then src/Makevars and install this
package from source. This functionality is based on
stand-alone C++ code by Valentin Hartmann
o Easier extraction of the Wasserstein distance
from semidiscrete optimal transport results
NEW FUNCTIONS
o semidiscrete1
The workhorse function for computing semidiscrete
optimal transport for p=1. This is called by the
function transport (if first input object has class
pgrid, second input object has class wpp and p=1) and
by the function semidiscrete (if p=1).
Calling semidiscrete1 directly offers finer control
of the algorithm.
o plot_apollonius
The workhorse function for plotting the semidiscrete
optimal transport plan for p=1. This is called by the
function plot.pgrid (if the second input object has
class wpp and p=1).
Calling plot_apollonius directly allows to plot
arbitrary Apollonius diagrams (a.k.a. weighted Voronoi
tesselations) based on a two-column matrix of centers
and a vector of weights. It allows offers finer
control over plotting.
SIGNIFICANT CHANGES
o Functions transport and plot.pgrid can now compute
and plot semidiscrete optimal transport plans also
for p=1 (in addition to p=2) using an object of class
pgrid and an object of class wpp. The result of the
plot is an Apollonius diagram (a.k.a. weighted
Voronoi tesselations) consisting of hyperbola
segments.
o The object returned by semidiscrete now always contains
a component giving the Wasserstein distance between the
input objects. The function wasserstein simply extracts
this component.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.9-4 (2017-10-03)
OVERVIEW
o Compilation with the most recent version of clang resulted in
an error. Fixed.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.9-3 (2017-09-29)
OVERVIEW
o Minor change to remove a compiler warning
----------------------------------------------------------------
CHANGES IN transport VERSION 0.9-2 (2017-09-28)
OVERVIEW
o Minor changes in Makevars to enable compilation under Windows and
pass CRAN checks
----------------------------------------------------------------
CHANGES IN transport VERSION 0.9-1 (2017-09-15)
OVERVIEW
o Minor bug fixes
----------------------------------------------------------------
CHANGES IN transport VERSION 0.9-0 (2017-08-24)
OVERVIEW
o Fixed serious bug, introduced in version 0.7-0,
by which the algorithm hanged for pgrid-objects if p>1
method="revsimplex" (the default) if masses are not integer valued
o New method "shielding" for pgrid-objects if p=2 that is considerably
faster than the existing methods. Option to link package
against CPLEX makes this combination even much faster and enables
computation for 128x128 grids within a few seconds.
C++ code by Bernhard Schmitzer
----------------------------------------------------------------
CHANGES IN transport VERSION 0.8-2 (2017-03-09)
OVERVIEW
o New function wasserstein1d to compute the Wasserstein
distance between two univariate samples (with weights)
----------------------------------------------------------------
CHANGES IN transport VERSION 0.8-1 (2016-12-03)
OVERVIEW
o We thank Atreju Tauschinsky for contributions
o The wasserstein function supports now the wpp class
o Several minor bug fixes
----------------------------------------------------------------
CHANGES IN transport VERSION 0.8-0 (2016-10-15)
OVERVIEW
o We thank Florian Heinemann and Timo Wilm for contributions
o New class weighted point patterns with full functionality
o Optimal transport between pgrid and wpp that returns
transport tesselation
o Dynamic optimal transport (displacement interpolation)
NEW CLASSES
o wpp
The class wpp describes general discrete measures with
finite support, i.e. patterns of finitely many "weighted"
points (without specific structure for the locations or
weights). There are constructors for this class,
as well as plot, print and summary functions. The
function 'transport' can deal with this class.
We thank Timo Wilm for help with creating this class.
NEW FUNCTIONS
o semidiscrete
Computes the transport map (in the form of a power
diagram) for the semidiscrete transport problem
from a pgrid to a wpp object for the case p=2.
This function is not usually called by the user
because the function transport offers the same
flexibility now.
o plot_pgrid_wpp
Plots a representation of a transport map (available
as a power diagram) between a pgrid and a wpp object.
This function gets called when using the generic plot
function with a pgrid and a wpp object (in that order),
but a direct call to plot_pgrid_wpp by the user offers
more possibilites for customizing the plot.
o transport_track
Computes a dynamic version of a given transference plan
by interpolating in time. The linear interpolation of
the projections of the transference plan is computed,
which in many important cases corresponds to the
displacement interpolation. The result can be either
returned as an array or is saved as an animated gif.
We thank Florian Heinemann for contributing large
parts of this function.
SIGNIFICANT CHANGES
o transport
Can now deal with two wpp objects and in the case p=2
also with one pgrid and one wpp object as inputs
(in that order).
o aha
It is now possible to return the parameters for the optimal
power diagram, rather than the (approximative) optimal transference
plan in terms of the pixel centers of the source measure. For
this, use the new option powerdiag.
OTHER USER-VISIBLE CHANGES
o pgrid
If no information is provided on the positions of the pixels, it is
now assumed that we have square pixels and the boundary points
in the first dimension are 0 and 1 (previous behaviour: boundary
points in every dimension are 0 and 1, leading to non-square pixels
if the pgrid is non-square).
o pgrid
A pgrid object has two additional components 'totmass' giving
the sum of pixel values, and 'totcontmass' giving the sum of
pixel values divided by pixel areas. The former may be interpreted
as totol mass of pgrid if interpreted as a discrete measure on the
grid of pixel centers. The latter may be interpreted as total
mass of pgrid if interpreted as a continuous measure with constant
density on each pixel (seen as small contiguous rectangles).
BUG FIXES
o Various smaller bug fixes for special input.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.7-5 (2016-09-28)
OVERVIEW
o We thank Ramon Diaz-Uriarte for contributions
o aha can return optimal power diagram now
o Several minor bug fixes
SIGNIFICANT CHANGES
o aha
It is now possible to return the parameters for the optimal
power diagram, rather than the (approximative) optimal transference
plan in terms of the pixel centers of the source measure. For
this, use the new option powerdiag.
BUG FIXES
o transport.pp, transport.default
Computing the optimal transport from a mass distribution
to itself resulted in an error.
Fixed.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.7-4 (2016-06-28)
OVERVIEW
o We thank Yann Abraham and Stefan Kain for contributions
o Several unnecessary outputs are now suppressed by default
(timing information, warnings about degenerate bases that
did not affect the result)
o Several minor bug fixes
BUG FIXES
o transport.pgrid
For p=1 computing the optimal transport from a mass distribution
to itself resulted in a segfault or an error (depending on the
method used).
Fixed.
o transport.pgrid
Having a mass distribution of integers and at least one zero could
cause an integer overflow.
Fixed.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.7-3 (2016-02-24)
OVERVIEW
o We thank Ludo Daemen and Stefan Kain for contributions
o Minor changes in the documentation and a bug fix
BUG FIXES
o transport.default
Using transport.default with the shortlist method gave an error
message if no shortlist parameters were set.
Fixed.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.7-0 (2015-10-21)
OVERVIEW
o There are two new ways for computing starting solutions
in transport.default and transport.pgrid with
method="revsimplex", which lead to substantial speed
improvements (mainly in transport.pgrid)
o Several minor bugfixes
SIGNIFICANT CHANGES
o transport.pgrid, transport.default
When method="revsimplex" is chosen, transport.pgrid can now
start from a solution that is based on the optimal transport
between two coarsened problems. This "multiscale" behaviour is invoked
automatically if p>1, the grid is 2-dimensional, of a certain
minimal size, and has an even number of vertices in each direction
(for p=1 use the control parameter nscales as in previous
versions). Both transport.pgrid and transport.default can also
be started from a solution based on the "Modified Row Minimum
Rule" (newly implemented in C Code). This is the default
behaviour now for transport.default, and also for transport.pgrid
if the multiscale starting solution described above cannot
be computed.
To get the behaviour of older versions, say
control=list(start="nwcorner") in the transport function.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.6-3 (2014-10-16)
OVERVIEW
o Minor changes in the documentation
----------------------------------------------------------------
CHANGES IN transport VERSION 0.6-2 (2014-06-21)
OVERVIEW
o Minor changes in the documentation and a bug fix
BUG FIXES
o aha
In the underlying C code integer overflows were possible (usually
without noticable effects on the result).
Fixed.
----------------------------------------------------------------
CHANGES IN transport VERSION 0.6-1 (2014-05-30)
OVERVIEW
o First public release