• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

estebanzimanyi / MobilityDB / 21786347306
95%

Build:
DEFAULT BRANCH: master
Ran 07 Feb 2026 08:30PM UTC
Jobs 1
Files 128
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Feb 2026 07:58PM UTC coverage: 95.254% (+0.01%) from 95.24%
21786347306

push

github

web-flow
Add trend, segmentMinDuration, and segmentMaxDuration functions (#756)

We give below the documentation of these functions in the MobilityDB
Manual

* `trend`: Return the trend of a temporal float with linear
interpolation, which states whether its value is increasing, constant,
or decreasing, represented, respectively, by 1, 0, and -1.
```
trend(tfloat) → tint
```
Note that the trend is `NULL` for instantaneous sequences.
```
SELECT trend(tfloat '[1@2001-01-01, 2@2001-01-02, 4@2001-01-03, 4@2001-01-04, 3@2001-01-05, 2@2001-01-06]');
-- [1@2001-01-01, 0@2001-01-03, -1@2001-01-04, -1@2001-01-06]
SELECT trend(tfloat '[1@2001-01-01]');
-- NULL
```

* `segmentMinDuration`, `segmentMaxDuration`: Return a temporal boolean
stating whether each segment of a continuous temporal sequence (set)
has, respectively, at least or at most a given duration
```
segmentMinDuration(temp,interval,bool strict=true) → tbool
segmentMaxDuration(temp,interval,bool strict=true) → tbool
```
If `strict` is not specified, the value true is assumed by default, and
therefore the function checks whether the segment
duration is strictly less than or greater than the interval. If the
argument is set to false, the function checks whether the
segment duration is less/greater than or equal to the interval.
```
SELECT segmentMinDuration(tfloat '[1@2001-01-01, 0@2001-01-03, -1@2001-01-04,-1@2001-01-06]', '1 day');
-- {[t@2001-01-01, f@2001-01-03, t@2001-01-04, t@2001-01-06)}
SELECT segmentMinDuration(tfloat '[1@2001-01-01, 0@2001-01-03, -1@2001-01-04,-1@2001-01-06]', '1 day', false);
-- {[t@2001-01-01, t@2001-01-06)}
SELECT segmentMaxDuration(tfloat '[1@2001-01-01, 0@2001-01-03, -1@2001-01-04,-1@2001-01-06]', '1 day');
-- {[f@2001-01-01 00:00:00+01, f@2001-01-06 00:00:00+01)}
SELECT segmentMaxDuration(tfloat '[1@2001-01-01, 0@2001-01-03, -1@2001-01-04,-1@2001-01-06]', '1 day', false);
-- {[f@2001-01-01, t@2001-01-03, f@2001-01-04, f@2001-01-06)}
```

97 of 98 new or added lines in 4 files covered. (98.98%)

46 existing lines in 6 files now uncovered.

32612 of 34237 relevant lines covered (95.25%)

1109718.42 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
92.34
0.25% meos/src/temporal/temporal.c

Uncovered Existing Lines

Lines Coverage ∆ File
2
98.61
0.06% meos/src/temporal/tinstant.c
3
98.44
0.0% meos/src/temporal/tsequenceset.c
8
95.56
0.01% mobilitydb/src/temporal/tnumber_spgist.c
10
97.82
0.03% meos/src/temporal/tsequence.c
11
93.45
-0.3% mobilitydb/src/temporal/meos_catalog.c
12
96.91
-0.28% meos/src/temporal/temporal_restrict.c
Jobs
ID Job ID Ran Files Coverage
1 21786347306.1 07 Feb 2026 08:30PM UTC 128
95.25
GitHub Action Run
Source Files on build 21786347306
  • Tree
  • List 128
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d4ddd30d on github
  • Prev Build on master (#19856588897)
  • Next Build on master (#22217542848)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc