[
  {
    "id": "hand-worked-cued",
    "title": "Cued freezing above the pre-CS baseline",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Curzon P, Rustay NR, Browman KE. Cued and contextual fear conditioning for rodents. In: Buccafusco JJ, editor. Methods of Behavior Analysis in Neuroscience. 2nd ed. Boca Raton (FL): CRC Press; 2009.",
      "doi": "10.1201/noe1420052343.ch2",
      "locator": "Cued test: freezing during the CS compared with freezing in the pre-CS period",
      "arithmetic": "Pre-CS freezing 10%, CS freezing 65%. Cued freezing = 65 − 10 = 55 percentage points."
    },
    "input": {
      "cued": {
        "preCS": 10,
        "cs": 65
      }
    },
    "expected": {
      "cuedFreezing": 55
    },
    "tolerance": {
      "cuedFreezing": 1e-12
    }
  },
  {
    "id": "hand-worked-generalisation",
    "title": "More freezing in the conditioning context than in a neutral context",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Curzon P, Rustay NR, Browman KE. Cued and contextual fear conditioning for rodents. In: Buccafusco JJ, editor. Methods of Behavior Analysis in Neuroscience. 2nd ed. Boca Raton (FL): CRC Press; 2009.",
      "doi": "10.1201/noe1420052343.ch2",
      "locator": "Context test: freezing in the conditioning context compared with a novel context",
      "arithmetic": "Conditioning context 70%, neutral context 20%. Generalisation score = 70 − 20 = 50 percentage points."
    },
    "input": {
      "context": {
        "conditioning": 70,
        "neutral": 20
      }
    },
    "expected": {
      "contextualFreezing": 70,
      "generalisation": 50
    },
    "tolerance": {
      "contextualFreezing": 1e-12,
      "generalisation": 1e-12
    }
  },
  {
    "id": "hand-worked-group-sem",
    "title": "Group mean and SEM of three animals' cued freezing",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Curzon P, Rustay NR, Browman KE. Cued and contextual fear conditioning for rodents. In: Buccafusco JJ, editor. Methods of Behavior Analysis in Neuroscience. 2nd ed. Boca Raton (FL): CRC Press; 2009.",
      "doi": "10.1201/noe1420052343.ch2",
      "locator": "Group comparison of cued freezing",
      "arithmetic": "Cued freezing 55, 45 and 65: mean = 165 / 3 = 55. SD = √[(0² + 10² + 10²) / (3 − 1)] = √100 = 10. SEM = 10 / √3 = 5.773503."
    },
    "input": {
      "groupValues": [
        55,
        45,
        65
      ]
    },
    "expected": {
      "mean": 55,
      "sem": 5.773502692,
      "n": 3
    },
    "tolerance": {
      "mean": 1e-12,
      "sem": 1e-9
    }
  },
  {
    "id": "edge-single-animal",
    "title": "A group with one animal",
    "sourceType": "hand-worked",
    "source": {
      "citation": "Curzon P, Rustay NR, Browman KE. Cued and contextual fear conditioning for rodents. In: Buccafusco JJ, editor. Methods of Behavior Analysis in Neuroscience. 2nd ed. Boca Raton (FL): CRC Press; 2009.",
      "doi": "10.1201/noe1420052343.ch2",
      "locator": "Group comparison of cued freezing",
      "arithmetic": "One animal with cued freezing 40: mean 40. A standard deviation needs at least two animals, so the tool reports an SEM of 0 (no error bar) for n = 1."
    },
    "input": {
      "groupValues": [
        40
      ]
    },
    "expected": {
      "mean": 40,
      "sem": 0,
      "n": 1
    }
  }
]
