[
  {
    "id": "analytic-direct-swim",
    "title": "A straight 50 cm swim onto the platform in 5 s",
    "sourceType": "analytic",
    "source": {
      "citation": "Gallagher M, Burwell R, Burchinal M. Severity of spatial learning impairment in aging: development of a learning index for performance in the Morris water maze. Behav Neurosci. 1993;107(4):618-626.",
      "doi": "10.1037/0735-7044.107.4.618",
      "locator": "Proximity measure: mean distance from the platform over the sampled positions",
      "arithmetic": "150 cm pool, center (75, 75), platform (112.5, 37.5), radius 7.5 cm. Six positions 1 s apart from (82.5, 77.5), each step (6, −8) = 10 cm: path 50 cm. Distances to the platform 50, 40, 30, 20, 10, 0: mean 25 cm. The first position has y ≥ 75 (SE), the other five are NE: 83.33% NE, 16.67% SE. Only the last position is inside the platform zone: 1 crossing. Every move points straight at the platform and the latency (5 s) is under 21 s (35% of 60 s): direct."
    },
    "input": {
      "points": [
        {
          "t": 0,
          "x": 82.5,
          "y": 77.5
        },
        {
          "t": 1,
          "x": 88.5,
          "y": 69.5
        },
        {
          "t": 2,
          "x": 94.5,
          "y": 61.5
        },
        {
          "t": 3,
          "x": 100.5,
          "y": 53.5
        },
        {
          "t": 4,
          "x": 106.5,
          "y": 45.5
        },
        {
          "t": 5,
          "x": 112.5,
          "y": 37.5
        }
      ]
    },
    "expected": {
      "pathLength": 50,
      "timeNE": 83.3333333333,
      "timeSE": 16.6666666667,
      "platformCrossings": 1,
      "gallagherProximity": 25,
      "strategy": "direct"
    },
    "tolerance": {
      "pathLength": 1e-9,
      "timeNE": 1e-8,
      "timeSE": 1e-8,
      "gallagherProximity": 1e-9
    }
  },
  {
    "id": "analytic-two-crossings",
    "title": "Two separate entries into the platform zone",
    "sourceType": "analytic",
    "source": {
      "citation": "Morris R. Developments of a water-maze procedure for studying spatial learning in the rat. J Neurosci Methods. 1984;11(1):47-60.",
      "doi": "10.1016/0165-0270(84)90007-4",
      "locator": "Probe trial: crossings of the former platform position",
      "arithmetic": "Positions at the platform (112.5, 37.5), 17.5 cm east, the platform again, then 17.5 cm west twice. Inside the 7.5 cm zone at the first and third positions: 2 entries. Distances 0, 17.5, 0, 17.5, 17.5: mean 52.5 / 5 = 10.5 cm."
    },
    "input": {
      "points": [
        {
          "t": 0,
          "x": 112.5,
          "y": 37.5
        },
        {
          "t": 1,
          "x": 130,
          "y": 37.5
        },
        {
          "t": 2,
          "x": 112.5,
          "y": 37.5
        },
        {
          "t": 3,
          "x": 95,
          "y": 37.5
        },
        {
          "t": 4,
          "x": 95,
          "y": 37.5
        }
      ]
    },
    "expected": {
      "platformCrossings": 2,
      "gallagherProximity": 10.5
    },
    "tolerance": {
      "gallagherProximity": 1e-9
    }
  },
  {
    "id": "analytic-speed",
    "title": "Latency and swim speed of the direct swim",
    "sourceType": "analytic",
    "source": {
      "citation": "Vorhees CV, Williams MT. Morris water maze: procedures for assessing spatial and related forms of learning and memory. Nat Protoc. 2006;1(2):848-858.",
      "doi": "10.1038/nprot.2006.116",
      "locator": "Latency to the platform, path length and swim speed",
      "arithmetic": "Latency = time of the last position = 5 s. Speed = path / latency = 50 / 5 = 10 cm/s."
    },
    "input": {
      "points": [
        {
          "t": 0,
          "x": 82.5,
          "y": 77.5
        },
        {
          "t": 1,
          "x": 88.5,
          "y": 69.5
        },
        {
          "t": 2,
          "x": 94.5,
          "y": 61.5
        },
        {
          "t": 3,
          "x": 100.5,
          "y": 53.5
        },
        {
          "t": 4,
          "x": 106.5,
          "y": 45.5
        },
        {
          "t": 5,
          "x": 112.5,
          "y": 37.5
        }
      ]
    },
    "expected": {
      "latency": 5,
      "pathLength": 50,
      "speed": 10
    },
    "tolerance": {
      "pathLength": 1e-9,
      "speed": 1e-9
    }
  },
  {
    "id": "edge-empty-track",
    "title": "A trial with no tracked positions",
    "sourceType": "analytic",
    "source": {
      "citation": "Vorhees CV, Williams MT. Morris water maze: procedures for assessing spatial and related forms of learning and memory. Nat Protoc. 2006;1(2):848-858.",
      "doi": "10.1038/nprot.2006.116",
      "locator": "Latency to the platform, path length and swim speed",
      "arithmetic": "No positions: path 0, latency 0 and speed 0, and no crossings. The mean distance to the platform over no positions is undefined, so proximity is not computable; with fewer than five positions the strategy is 'random'."
    },
    "input": {
      "points": []
    },
    "expected": {
      "pathLength": 0,
      "latency": 0,
      "speed": 0,
      "platformCrossings": 0,
      "gallagherProximity": null,
      "strategy": "random"
    }
  }
]
