Files
secondo/Algebras/Temporal/Temporal.examples
2026-01-23 17:03:45 +08:00

853 lines
27 KiB
Plaintext

Database: berlintest
Restore : No
Operator : #
Number : 1
Signature: (instant instant) -> bool, (rT rT)) -> bool
Example : query [const instant value "2007-12-24"] # [const instant value "2007-12-25"]
Result : TRUE
Operator : #
Number : 2
Signature: (iT iT) -> bool, T in {bool, int, real, point}
Example : query [const ipoint value ("2007-12-24" (1.1 -2.2))] # [const ipoint value ("2007-12-24" (1.1 -2.2))]
Result : FALSE
Operator : #
Number : 3
Signature: (instant instant) -> bool, (rT rT)) -> bool
Example : query [const instant value "2007-12-24"] # [const instant value "2007-12-25"]
Result : TRUE
Operator : <=
Number : 1
Signature: (instant instant) -> bool
Example : query [const instant value "2007-12-24"] <= [const instant value "2007-12-24"]
Result : TRUE
Operator : <
Number : 1
Signature: (instant instant) -> bool
Example : query [const instant value "2007-12-24"] < [const instant value "2007-12-24"]
Result : FALSE
Operator : =
Number : 1
Signature: (instant instant) -> bool, (rT rT) -> bool
Example : query [const instant value "2007-12-24"] = [const instant value "2007-12-24"]
Result : TRUE
Operator : =
Number : 2
Signature: (iT iT) -> bool, T in {bool, int, real, point}
Example : query [const ireal value ("2007-12-24" -686.684)] # [const ireal value ("2007-12-24" -873.354)]
Result : TRUE
Operator : >=
Number : 1
Signature: (instant instant) -> bool
Example : query [const instant value "2007-12-24"] >= [const instant value "2007-12-31"]
Result : FALSE
Operator : >
Number : 1
Signature: (instant instant) -> bool
Example : query [const instant value "2007-12-24"] > [const instant value "2007-12-31"]
Result : FALSE
Operator : at
Number : 1
Signature: (mT T) -> mT
Example : query mreal5000 at 5000.0
Result : (mreal ((("2003-11-20" "2003-11-21" TRUE TRUE) (0.0 0.0 5000.0 FALSE))))
Operator : atinstant
Number : 1
Signature: (mT instant) -> iT
Example : query mreal5000 atinstant [const instant value "2003-11-20"]
Result : (ireal ("2003-11-20" 5000.0))
Operator : atperiods
Number : 1
Signature: (mT periods) -> mT
Example : query train7 atperiods [const periods value (("2003-11-20-07:01:40" "20003-11-20-07:45" TRUE TRUE))]
Result : (mpoint((("2003-11-20-07:01:40" "2003-11-20-07:01:44.586" TRUE FALSE)(-3519.76750330251 14374.09577278732 -3544.0 14312.0))(("2003-11-20-07:01:44.586" "2003-11-20-07:01:50" TRUE FALSE)(-3544.0 14312.0 -3560.0 14235.0))(("2003-11-20-07:01:50" "2003-11-20-07:02" TRUE FALSE)(-3560.0 14235.0 -3560.0 14235.0))))
Operator : bbox
Number : 1
Signature: upoint -> rect3, mpoint -> rect3, ipoint -> rect3, cupoint -> rect3, cmpoint -> rect3, periods -> rect3, instant -> rect3
Example : query bbox([const upoint value (("2003-10-10" "2003-12-10" TRUE TRUE) (0.0 0.0 1.0 1.0))])
Result : (rect3 (0.0 1.0 0.0 1.0 1376.0 1437.0))
Operator : bbox
Number : 2
Signature: upoint -> rect3, mpoint -> rect3, ipoint -> rect3, cupoint -> rect3, cmpoint -> rect3, periods -> rect3, instant -> rect3
Example : query bbox(deftime(train1))
Result : (rect3 (-1.797693134862313e+308 1.797693134862313e+308 -1.797693134862313e+308 1.797693134862313e+308 1417.252083333333 1417.279861111111))
Operator : bbox
Number : 3
Signature: upoint -> rect3, mpoint -> rect3, ipoint -> rect3, cupoint -> rect3, cmpoint -> rect3, periods -> rect3, instant -> rect3
Example : query bbox(six30)
Result : (rect3 (-1.797693134862313e+308 1.797693134862313e+308 -1.797693134862313e+308 1.797693134862313e+308 1417.270833333333 1417.270833333333))
Operator : mbrange
Number : 1
Signature: rT -> rT, (T in {int, real}), periods -> periods
Example : query mbrange(deftime([const upoint value (("2003-10-10" "2003-12-10" TRUE TRUE) (0.0 0.0 1.0 1.0))]))
Result : (periods (("2003-10-10" "2003-12-10" TRUE TRUE)))
Operator : mbrange
Number : 2
Signature: rT -> rT (T in {int, real}), periods -> periods
Example : query mbrange(deftime(train7))
Result : (periods (("2003-11-20-06:06" "2003-11-20-07:02" TRUE TRUE)))
Operator : bboxold
Number : 1
Signature: upoint -> rect3, mpoint -> rect3, ipoint -> rect3, rT -> rT
Example : query bboxold([const upoint value (("2003-10-10" "2003-12-10" TRUE TRUE) (0.0 0.0 1.0 1.0))])
Result : (rect3 (0.0 1.0 0.0 1.0 1376.0 1437.0))
Operator : bbox2d
Number : 1
Signature: (upoint|mpoint|ipoint|cupoint|cmpoint) -> rect2
Example : query bbox2d([const upoint value (("2003-10-10" "2003-12-10" TRUE TRUE) (0.0 0.0 1.0 1.0))])
Result : (rect (0.0 1.0 0.0 1.0))
Operator : before
Number : 1
Signature: (rT rT) -> bool, (T rT) -> bool, (rT T) -> bool
Example : query 5 before [const rint value ((0 1 TRUE FALSE) (1 2 TRUE FALSE))]
Result : FALSE
Operator : box2d
Number : 1
Signature: {rect|rect3|rect4|rect8} -> rect
Example : query box2d(box1000)
Result : (rect (2265.0 2265.0 4892.0 4892.0))
Operator : box3d
Number : 1
Signature: For S in {rect, instant, periods}: S -> rect3 For T in {instant, periods}: rect x T -> rect3
Example : query box3d([const rect value (0.0 0.0 1000.0 1000.0)],six30)
Result : (rect3 (0.0 0.0 1000.0 1000.0 1417.270833333333 1417.270833333333))
Operator : breakpoints
Number : 1
Signature: mpoint x duration -> points
Example : query breakpoints( train7, [const duration value (0 1000)] )
Result : file
Operator : breaks
Number : 1
Signature: mpoint x duration x real -> periods
Example : query no_components(breakpoints( train7, [const duration value (0 1000)], 20.0)) = no_components(breaks( train7, [const duration value (0 1000)], 20.0))
Result : TRUE
Operator : deftime
Number : 1
Signature: moving(x) -> periods
Example : query deftime(train7)
Result : (periods (("2003-11-20-06:06" "2003-11-20-07:02" TRUE FALSE)))
Operator : distance
Number : 1
Signature: (mpoint point) -> mreal
Example : query distance(train7, mehringdamm)
Result : file
Operator : squareddistance
Number : 1
Signature: (mpoint point) -> mreal, (mpoint mpoint) -> mreal
Example : query minimum(squareddistance(train7, mehringdamm))
Result : 0.0
Tolerance: 0.000000001
Operator : disturb
Number : 1
Signature: mpoint x real x real -> mpoint
Example : query maximum(distance(train7, train7 disturb[2000.0,200.0])) < 2829.0
Result : TRUE
Operator : equal
Number : 1
Signature: (moving(x) moving(x)) -> bool
Example : query train7 equal train7
Result : TRUE
Operator : extdeftime
Number : 1
Signature: mT x uT -> mT with T in {bool, int}
Example : query extdeftime([const mbool value ((("begin of time" "2001-10-10" TRUE FALSE) TRUE) (("2002-10-10" "end of time" TRUE FALSE) TRUE))], [const ubool value (("200-12-30" "2000-12-31" TRUE FALSE) FALSE)])
Result : file
Operator : final
Number : 1
Signature: mT -> iT
Example : query final(train7)
Result : (ipoint ("2003-11-20-07:02" (-3560.0 14235.0)))
Operator : initial
Number : 1
Signature: mT -> iT
Example : query initial(train7)
Result : (ipoint ("2003-11-20-06:06" (16821.0 1252.0)))
Operator : inside
Number : 1
Signature: (rT rT) -> bool, (T rT) -> bool
Example : query 5 inside [const rint value ((0 1 TRUE FALSE)(1 10 TRUE FALSE))]
Result : TRUE
Operator : inst
Number : 1
Signature: iT -> instant
Example : query inst(initial(train7))
Result : (instant "2003-11-20-06:06")
Operator : integrate
Number : 1
Signature: {ureal , mreal} -> real
Example : query integrate(mreal5000)
Result : 5000.0
Operator : intersection
Number : 1
Signature: (rT rT) -> rT
Example : query intersection([const rint value((0 6 TRUE FALSE)(8 10 TRUE FALSE))], [const rint value ((5 8 TRUE TRUE))])
Result : (rint ((5 6 TRUE FALSE)(8 8 TRUE TRUE)))
Operator : intersects
Number : 1
Signature: (rT rT) -> bool
Example : query [const rint value((0 6 TRUE FALSE)(8 10 TRUE FALSE))] intersects [const rint value ((5 8 TRUE TRUE))]
Result : TRUE
Operator : isempty
Number : 1
Signature: instant -> bool, rT -> bool, uT -> bool
Example : query isempty(train7)
Result : file
Operator : isempty
Number : 2
Signature: instant -> bool, rT -> bool, uT -> bool
Example : query isempty([const iint value ("2007-08-13-15:01:42.543" -999)])
Result : FALSE
Operator : isempty
Number : 3
Signature: instant -> bool, rT -> bool, uT -> bool
Example : query isempty([const ipoint value undef])
Result : TRUE
Operator : length
Number : 1
Signature: mpoint [x string] -> real
Example : query length(train7)
Result : 31662.1260235619
Operator : length
Number : 2
Signature: mpoint [x string] -> real
Example : query length([const mpoint value ((("2007-02-27-16:05:54.922" "2007-02-27-16:05:55.922" TRUE FALSE) (7.495008333333334 51.37592333333333 7.495061666666667 51.37594166666667)) (("2007-02-27-16:05:55.922" "2007-02-27-16:05:56.922" TRUE FALSE) (7.495061666666667 51.37594166666667 7.495113333333333 51.37595833333334)) (("2007-02-27-16:05:56.922" "2007-02-27-16:05:57.922" TRUE FALSE) (7.495113333333333 51.37595833333334 7.495146666666667 51.375995)))],"WGS1984")
Result : (real 12.9775022159)
Tolerance: 0.0001
Operator : maximum
Number : 1
Signature: rT -> T
Example : query maximum ([const rint value ((0 1 TRUE FALSE) (2 10 TRUE FALSE))])
Result : 10
Operator : mbool2mint
Number : 1
Signature: mbool -> mint
Example : query mbool2mint(isempty(train7))
Result : file
Operator : minimum
Number : 1
Signature: rT -> T
Example : query minimum([const rint value ((0 1 TRUE FALSE) (2 3 TRUE FALSE))])
Result : 0
Operator : minus
Number : 1
Signature: (rT rT ) -> rT
Example : query [const rint value ((0 10 TRUE FALSE))] minus [const rint value ((2 5 TRUE FALSE))]
Result : (rint ((0 2 TRUE FALSE)(5 10 TRUE FALSE)))
Operator : no_components
Number : 1
Signature: rT -> int, mT -> int
Example : query no_components (train7)
Result : 185
Operator : nonequal
Number : 1
Signature: (mT mT) -> bool
Example : query train7 nonequal simplify(train7, 50.0)
Result : TRUE
Operator : passes
Number : 1
Signature: (mT T) -> bool
Example : query train7 passes mehringdamm
Result : TRUE
Operator : present
Number : 1
Signature: (mT instant) -> bool, (mT periods) -> bool
Example : query train7 present(six30)
Result : TRUE
Operator : simplify
Number : 1
Signature: mpoint x real [ x duration ] -> mpoint | mreal x real -> mreal
Example : query simplify(train7, 50.0)
Result : file
Operator : theday
Number : 1
Signature: int x int x int -> periods
Example : query theday(2002, 6,3)
Result : (periods (("2002-06-03" "2002-06-04" TRUE FALSE)))
Operator : thehour
Number : 1
Signature: int x int x int x int -> periods
Example : query thehour(2002, 2, 28, 8)
Result : (periods (("2002-02-28-08:00" "2002-02-28-09:00" TRUE FALSE)))
Operator : theminute
Number : 1
Signature: int x int x int x int x int -> periods
Example : query theminute(2002, 3, 28, 8, 59)
Result : (periods (("2002-03-28-08:59" "2002-03-28-09:00" TRUE FALSE)))
Operator : themonth
Number : 1
Signature: int x int -> periods
Example : query themonth(2002, 3)
Result : (periods (("2002-03-01" "2002-04-01" TRUE FALSE)))
Operator : theperiod
Number : 1
Signature: (periods periods) -> periods
Example : query theperiod(theyear(2002), theyear(2004))
Result : (periods (("2002-01-01" "2005-01-01" TRUE FALSE)))
Operator : theRange
Number : 1
Signature: T x T x bool x bool -> rT (for T in {int bool real string})
Example : query theRange(-96, 17, FALSE, TRUE)
Result : (rint ((-96 17 FALSE TRUE)))
Operator : theRange
Number : 2
Signature: instant x instant x bool x bool -> periods
Example : query theRange(six30, six30, TRUE, TRUE)
Result : (periods (("2003-11-20-06:30" "2003-11-20-06:30" TRUE TRUE)))
Operator : thesecond
Number : 1
Signature: int x int x int x int x int x int -> periods
Example : query thesecond(2002, 12, 31, 23, 59, 59)
Result : (periods (("2002-12-31-23:59:59" "2003-01-01" TRUE FALSE)))
Operator : theyear
Number : 1
Signature: int -> periods
Example : query theyear(2002)
Result : (periods (("2002-01-01" "2003-01-01" TRUE FALSE)))
Operator : trajectory
Number : 1
Signature: mpoint -> line
Example : query trajectory(train7)
Result : file
Operator : translate
Number : 1
Signature: mpoint x duration x real x real -> mpoint
Example : query train7 translate[[const duration value (5 10)],5.0,8.0]
Result : file
Operator : union
Number : 1
Signature: (rT rT) -> rT
Example : query [const rint value ((0 1 TRUE FALSE))] union [const rint value ((1 2 TRUE FALSE))]
Result : (rint ((0 2 TRUE FALSE)))
Operator : units
Number : 1
Signature: For T in {bool, int, real, point}: mT -> (stream uT)
Example : query units(train7) count
Result : 185
Operator : getunit
Number : 1
Signature: mT x int -> uT, where T in {bool, int, real, point}:
Example : query getunit(train7, 0)
Result : (upoint (("2003-11-20-06:06" "2003-11-20-06:06:08.692" TRUE FALSE) (16821.0 1252.0 16673.0 1387.0)))
Operator : getPosition
Number : 1
Signature: mT x instant -> int, where T in {bool, int, real, point, string, region}
Example : query getPosition(train7, [const instant value "2003-11-20-06:07"])
Result : 7
Operator : val
Number : 1
Signature: iT -> T
Example : query val ([const iint value ("2003-10-10" 1)])
Result : 1
Operator : linearize
Number : 1
Signature: mreal -> mreal, ureal -> ureal
Example : query linearize([const mreal value ( (("2000-03-01" "2000-03-10" TRUE TRUE) (3.0 -30.0 25.0 FALSE)))])
Result : (mreal ( ( ("2000-03-01" "2000-03-10" TRUE TRUE) (0.0 -3.0 25.0 FALSE))))
Operator : linearize2
Number : 1
Signature: mreal -> mreal, ureal -> stream(ureal)
Example : query linearize2([const mreal value ( (("2000-03-01" "2000-03-10" TRUE TRUE) (3.0 -30.0 25.0 FALSE)))])
Result : (mreal ( ( ("2000-03-01" "2000-03-06" TRUE TRUE) (0.0 -15.0 25.0 FALSE)) ( ("2000-03-06" "2000-03-10" FALSE TRUE) (0.0 12.0 -50.0 FALSE))))
Operator : approximate
Number : 1
Signature: stream(tuple(a1 t1) ...(an tn) ) x ai x aj -> mreal, ti = instant, tj = real
Example : query intstream(0, 3) transformstream extend[D: int2real(.Elem)] extend[ I: create_instant(.D), V : .D * .D] approximate[I,V]
Result : (mreal ( ( ("2000-01-03" "2000-01-04" TRUE FALSE) (0.0 1.0 0.0 FALSE)) ( ("2000-01-04" "2000-01-05" TRUE FALSE) (0.0 3.0 1.0 FALSE)) ( ("2000-01-05" "2000-01-06" TRUE FALSE) (0.0 5.0 4.0 FALSE))))
Operator : translateappend
Number : 1
Signature: mpoint x mpoint x duration -> mpoint
Example : query train5 translateappend[ train6 , [const duration value (0 30000)]]
Result : file
Operator : translateappendS
Number : 1
Signature: stream(tuple([a1 : t1, ...an : tn])) x ai x duration -> mpoint, with ti = mpoint
Example : query Trains feed head[3] translateappendS[Trip, [const duration value(0 40000)]]
Result : file
Operator : reverse
Number : 1
Signature: mpoint -> mpoint
Example : query reverse(train5)
Result : file
Operator : samplempoint
Number : 1
Signature: mpoint x duration -> mpoint
Example : query samplempoint(train7, [const duration value (0 60000)])
Result : file
Operator : samplempoint
Number : 2
Signature: mpoint x duration x bool x bool -> mpoint
Example : query trajectory(samplempoint(train7, [const duration value (1 60000)],TRUE,TRUE))=trajectory(train7)
Result : TRUE
Operator : gps
Number : 1
Signature: mpoint x duration -> stream(tuple([Time: instant, Position : point]))
Example : query gps(train7, [const duration value (0 60000)]) count
Result : 56
Operator : hat
Number : 1
Signature: mint -> mint
Example : query hat(noAtCenter);
Result : (mint ( (("begin of time" "2003-11-20-06:18:16.027" TRUE FALSE) 0) ( ("2003-11-20-06:18:16.027" "2003-11-20-07:58:39.261" TRUE FALSE) 0) ( ("2003-11-20-07:58:39.261" "2003-11-20-08:49:55.941" TRUE FALSE) 1) ( ("2003-11-20-08:49:55.941" "2003-11-20-09:55" TRUE FALSE) 0) ( ("2003-11-20-09:55" "end of time" TRUE TRUE) 0)))
Operator : restrict
Number : 1
Signature : mint -> mint
Example : query units(restrict(noAtCenter) = noAtCenter) count
Result : 1
Operator : restrict
Number : 2
Signature : mint x int -> mint
Example : query units(restrict(noAtCenter, 1) = noAtCenter) count
Result : 1
Operator : speedup
Number : 2
Signature : mpoint x real -> mpoint
Example : query deftime(train1 speedup[2.0])
Result : (periods (("2003-11-20-06:03" "2003-11-20-06:23:00.020" TRUE FALSE)))
Operator : avg_speed
Number : 1
Signature : mpoint [ x string ] -> real
Example : query avg_speed(train1)
Result : 7.8796161609
Operator : avg_speed
Number : 2
Signature : mpoint [ x string ] -> real
Example : query avg_speed([const mpoint value ((("2007-02-27-16:05:54.922" "2007-02-27-16:05:55.922" TRUE FALSE) (7.495008333333334 51.37592333333333 7.495061666666667 51.37594166666667)) (("2007-02-27-16:05:55.922" "2007-02-27-16:05:56.922" TRUE FALSE) (7.495061666666667 51.37594166666667 7.495113333333333 51.37595833333334)) (("2007-02-27-16:05:56.922" "2007-02-27-16:05:57.922" TRUE FALSE) (7.495113333333333 51.37595833333334 7.495146666666667 51.375995)))],"WGS1984")
Result : 4.325834072
Operator : submove
Number : 2
Signature : mpoint x real -> mpoint
Example : query deftime(train1 submove[1.0])
Result : (periods (("2003-11-20-06:03" "2003-11-20-06:43" TRUE FALSE)))
Operator : vertices
Number : 1
Signature : mpoint -> points
Example : query no_components(vertices(train1))
Result : 91
Operator : gk
Number : 1
Signature : point -> point
Example : query gk([const point value (51.36667 7.48333)])
Result : (point (8090870.0 1152000.0))
Tolerance : 5.0
Operator : equalizeU
Number : 1
Signature : mpoint x real -> mpoint
Example : query (train7 equalizeU[0.0]) = train7
Result : (mbool ((("2003-11-20-06:06" "2003-11-20-07:02" TRUE FALSE) TRUE)))
Operator : p2mp
Number : 1
Signature : p x instant x instant x int -> mpoint
Example : query p2mp( point(2 3),theInstant(2003,11,20,6),theInstant(2003,11,20,7),1)
Result :(mpoint((("2003-11-20-06:00" "2003-11-20-07:00" TRUE FALSE)(2.0 3.0 2.0 3.0))))
Operator : mp2onemp
Number : 1
Signature : mpoint x instant x instant -> mpoint
Example : query deftime(mp2onemp ( train1 ,minimum(deftime(train1)),maximum(deftime(train1))))
Result : (periods (("2003-11-20-06:03" "2003-11-20-06:43" TRUE FALSE)))
Operator : delay
Number : 1
Signature : mpoint x mpoint -> mreal
Example : query val(initial(delay(train7, train7)))
Result : 0.0
Operator : distancetraversed
Number : 1
Signature : mpoint -> mreal
Example : query val(final(distancetraversed(train7)))
Result : 31662.126
Tolerance : 0.001
Operator : mint2mbool
Number : 1
Signature : mint -> mbool
Example : query mint2mbool(zero())
Result : (mbool ( ( ("begin of time" "end of time" TRUE TRUE) FALSE)))
Operator : mint2mreal
Number : 1
Signature : mint -> mreal
Example : query mint2mreal(zero())
Result : (mreal ((("begin of time" "end of time" TRUE TRUE) (0.0 -0.0 0.0 FALSE))))
Operator : uval
Number : 1
Signature : uint -> int
Example : query uval(the_unit(99, six30, nine, FALSE, TRUE))
Result : (int 99)
Operator : turns
Number : 1
Signature : mpoint x real x real [ x duration ] -> stream(tuple(TimeOld instant, TimeNew instant, PosOld point, PosNew point, HeadingOld real, HeadingNew real, HeadingDiff real))
Example : query turns(train1, 45.0, 47.0, [const duration value (0 60000)]) tconsume
Result : ((trel(tuple((TimeOld instant)(TimeNew instant)(PosOld point)(PosNew point)(HeadingOld real)(HeadingNew real)(HeadingDiff real)))) (("2003-11-20-06:24:19.668" "2003-11-20-06:24:19.668" (5452.0 9877.0) (5452.0 9877.0) 238.1340223063963 192.2361115094163 -45.89791079698)))
Operator : timeshift
Number : 1
Signature : (mT, duration) -> mT
Example : query no_components(train7 timeshift[create_duration(1, 0)])
Result : (int 185)
Operator : gridcellevents
Number : 1
Signature : mpoint x real x real x real x real x int -> stream(tuple(Cell int, TimeEntered: instant, TimeLeft: instant, CellPrevious: int, CellNext: int))
Example : query gridcellevents(train7, -4000.0, 1000.0, 1000.0, 1000.0, 25) count
Result : (int 38)
Operator : gridcellevents
Number : 2
Signature : upoint x real x real x real x real x int -> stream(tuple(Cell int, TimeEntered: instant, TimeLeft: instant, CellPrevious: int, CellNext: int))
Example : query gridcellevents(the_unit(makepoint(200,-100),makepoint(200,1100),six30, six30 + [const duration value (0 1200000)] ,TRUE, FALSE), 0.0, 0.0, 100.0, 100.0, 10) count
Result : (int 11)
Operator : gridcellevents
Number : 3
Signature : mpoint x cellgrid2d -> stream(tuple(Cell int, TimeEntered: instant, TimeLeft: instant, CellPrevious: int, CellNext: int))
Example : query gridcellevents(train7, createCellGrid2D(-4000.0, 1000.0, 1000.0, 1000.0, 25)) count
Result : (int 38)
Operator : gridcellevents
Number : 4
Signature : upoint x cellgrid2d -> stream(tuple(Cell int, TimeEntered: instant, TimeLeft: instant, CellPrevious: int, CellNext: int))
Example : query gridcellevents(the_unit(makepoint(200,-100),makepoint(200,1100),six30, six30 + [const duration value (0 1200000)] ,TRUE, FALSE), createCellGrid2D(0.0, 0.0, 100.0, 100.0, 10)) count
Result : (int 11)
Operator : createCellGrid2D
Number : 1
Signature : {int,real} x {int, real} x {int,real} x {int,real} x int -> gridcell2d
Example : query createCellGrid2D( 1.0, 1.0, 4.0, 5.0, 7)
Result : (cellgrid2d (1.0 1.0 4.0 5.0 7))
Operator : createCellGrid3D
Number : 1
Signature : {int,real} x {int, real} x {int,real} x {int,real} x {int, real} x {int,real} x {int,real} x int x int -> gridcell3d
Example : query createCellGrid3D( 1.0, 1.0, 1.0, 4.0, 5.0, 6.0, 7, 8)
Result : (cellgrid3d (1.0 1.0 1.0 4.0 5.0 6.0 7 8))
Operator : getRefinementPartion
Number : 1
Signature : {mT1|uT1} x {mT2|uT2} -> stream(tuple((Tstart instant)(Tend instant)(Tlc bool)(Trc bool)(Unit1 uT1)(Unit2 uT2)(UnitNo1 int)(UnitNo2 int))), where T1, T2 in {point, real, int, bool, string}
Example : query getRefinementPartion(train1, train5) count
Result : 173
Operator : removeNoise
Number : 1
Signature : mpoint x real x real [x geoid] -> mpoint
Example : query no_components(train7) = no_components(train7 removeNoise[10.0, 20.0])
Result : FALSE
Operator : forceToDuration
Number : 1
Signature : Xpoint x duration x bool [x geoid] -> Xmpoint, where X in {cu, m, cm}
Example : query no_components(forceToDuration(train7, create_duration(0,60000), TRUE))
Result : 7
Operator : atRect
Number : 1
Signature : mpoint x rect -> mpoint
Example : query deftime(train7 atRect bbox(thecenter)) = deftime(train7 at (bbox(thecenter) rect2region))
Result : TRUE
Operator : moveTo
Number : 1
Signature : mT x instant -> mT , T in {point,int,real,bool}
Example : query get_duration(deftime(train7)) = get_duration( deftime(train7 moveTo[now()]))
Result : TRUE
Operator : fillGaps
Number : 1
Signature : periods -> periods
Example : query theperiod(deftime(train7), deftime(train7)) = fillGaps(deftime(train7))
Result : TRUE
Operator : fillGaps
Number : 2
Signature : periods x duration -> periods
Example : query theperiod(deftime(train7), deftime(train7)) = fillGaps(deftime(train7), [const duration value (0 1000)])
Result : TRUE
Operator : removeShort
Number : 1
Signature : periods x duration -> periods
Example : query removeShort(deftime(train7), [const duration value (1 0)])
Result : (periods ())
Operator : when
Number : 1
Signature: (mT mbool) -> mT
Example : query train7 when[speed(train7) > 24.0]
Result : (mpoint( ( ("2003-11-20-06:16" "2003-11-20-06:16:11.187" TRUE FALSE) (13592.0 5253.0 13540.0 5518.0)) ( ("2003-11-20-06:16:11.187" "2003-11-20-06:16:16.201" TRUE FALSE) (13540.0 5518.0 13537.0 5639.0)) ( ("2003-11-20-06:16:16.201" "2003-11-20-06:16:20.430" TRUE FALSE) (13537.0 5639.0 13552.0 5740.0)) ( ("2003-11-20-06:16:20.430" "2003-11-20-06:16:25.041" TRUE FALSE) (13552.0 5740.0 13525.0 5848.0)) ( ("2003-11-20-06:16:25.041" "2003-11-20-06:16:50" TRUE FALSE) (13525.0 5848.0 13262.0 6390.0))))
Operator : getIntervals
Number : 1
Signature : periods -> stream(periods)
Example : query getIntervals(deftime(train7)) count
Result : 1
Operator : components
Number : 1
Signature : periods -> stream(periods)
Example : query components(deftime(train7 when[speed(train7) > 10.0])) count
Result : 22
Operator : trajectory3
Number : 1
Signature : mpoint -> dline
Example : query trajectory3(train7) feed count
Result : 1
Operator : createPeriods
Number : 1
Signature : instant x instant x bool x bool -> periods
Example : query createPeriods( [const instant value "2013-04-18"], [const instant value "2013-04-19"], TRUE, FALSE)
Result : (periods (("2013-04-18" "2013-04-19" TRUE FALSE)))
Operator : createPeriods
Number : 2
Signature : instant x duration x bool x bool -> periods
Example : query createPeriods( [const instant value "2013-04-18"], [const duration value (1 0)], TRUE, FALSE)
Result : (periods (("2013-04-18" "2013-04-19" TRUE FALSE)))
Operator : contains
Number : 1
Signature : periods x instant -> bool
Example : query theyear(2014) contains [const instant value "2014-02-14"]
Result : TRUE
Operator : replace
Number : 1
Signature : mpoint x {mpoint, upoint} -> mpoint
Example : query final(train6) = final(replace(train1, train6))
Result : TRUE
Operator : removePeriods
Number : 1
Signature : X x periods -> X, X in {mpoint, mint, mreal, mstring, mbool, periods}
Example : query deftime(train6 removePeriods[deftime(train1)]) = (deftime(train6) minus deftime(train1))
Result : TRUE
Operator : getGKZone
Number : 1
Signature : {real, point} -> int
Example : query getGKZone(7.41)
Result : 2
Operator : constmpoint
Number : 1
Signature : periods x point -> mpoint
Example : query constmpoint(deftime(train1), mehringdamm)
Result : (mpoint ( ( ("2003-11-20-06:03" "2003-11-20-06:43" TRUE FALSE) (9396.0 9871.0 9396.0 9871.0))))
Operator : distanceAvg
Number : 1
Signature : mpoint x mpoint (x duration) (x geoid) -> real
Example : query distanceAvg(train5, train6)
Result : 17030.615965
Operator : distanceAvgLB
Number : 1
Signature : cXpoint x cXpoint (x duration) (x geoid) -> real (X = m|u)
Example : query distanceAvgLB(cbbox(train5), cbbox(train6))
Result : 13561.344094
Operator : distanceAvgUB
Number : 1
Signature : cXpoint x cXpoint (x duration) (x geoid) -> real (X = m|u)
Example : query distanceAvgUB(cbbox(train5), cbbox(train6))
Result : 23050.401494
Operator : cbbox
Number : 1
Signature : (cmpoint x geoid) | (mpoint x geoid) | upoint (x real) -> cupoint
Example : query size(bbox2d((cbbox(train5)))) > 1000000.0
Result : TRUE
Operator : mpoint2cmpoint
Number : 1
Signature : mpoint x (duration|real) (x geoid) -> cmpoint
Example : query no_components(mpoint2cmpoint(train5, create_duration(0, 60000)))
Result : 35
Operator : getRadius
Number : 1
Signature : cupoint -> real
Example : query getRadius(cbbox(train5))
Result : 3894.326188742
Operator : getRadii
Number : 1
Signature : cmpoint -> mreal
Example : query sometimes(getRadii(mpoint2cmpoint(train5, create_duration(0, 300000))) > 868.0)
Result : TRUE
Operator : getUPoint
Number : 1
Signature : cupoint -> upoint
Example : query length(getUPoint(cbbox(train5)))
Result : 15049.2137336141
Operator : getMPoint
Number : 1
Signature : cmpoint -> mpoint
Example : query no_components(getMPoint(mpoint2cmpoint(train5, create_duration(0, 120000))))
Result : 18
Operator : traversed
Number : 1
Signature : cXpoint -> cXpointregion, X in {m,u}
Example : query isdefined(traversed(cbbox(train5)))
Result : TRUE