def rationality(x):
    """
    :param x [x, y, z, k, g] history record

    Neuron sense, rationality will focus on x[4] which is a
    difference in omitted objects between current and last history record
    """
    try:
        return x[3] / x[4]
    except ZeroDivisionError:
        return 0
