Esempio n. 1
0
def output_index_it(level, i, para, cluster_trajectories, semantic_trajectories, u, k, w, file):
    if i == 0:
        f = open(file, "w")
        f.write("#\tNPE\tNPC\tXB\tBSC\tRSC\n")
    else:
        f = open(file, "a")
    print("#- ", para, "------------ u.shpae:", u.shape)
    f.write("#- " + str(para) + "\t")

    npe = cindex.npe(u)
    print("NPE--\t\t", npe)
    f.write(str(npe) + "\t")

    npc = cindex.npc(u)
    print("NPC--\t\t", npc)
    f.write(str(npc) + "\t")

    xb, up, down = cindex.xb(level, u, k, w, cluster_trajectories, semantic_trajectories)
    print("XB--\t\t", xb, "\t(", up, ",", down, ")")
    f.write(str(xb) + "(" + str(up) + "," + str(down) + ")" + "\t")

    f.write("\n")
    f.close()

    """
Esempio n. 2
0
def output_index_it(level, i, para, cluster_trajectories,
                    semantic_trajectories, u, k, w, file):
    if i == 0:
        f = open(file, "w")
        f.write("#\tNPE\tNPC\tXB\tBSC\tRSC\n")
    else:
        f = open(file, "a")
    print("#- ", para, "------------ u.shpae:", u.shape)
    f.write("#- " + str(para) + "\t")

    npe = cindex.npe(u)
    print("NPE--\t\t", npe)
    f.write(str(npe) + "\t")

    npc = cindex.npc(u)
    print("NPC--\t\t", npc)
    f.write(str(npc) + "\t")

    xb, up, down = cindex.xb(level, u, k, w, cluster_trajectories,
                             semantic_trajectories)
    print("XB--\t\t", xb, "\t(", up, ",", down, ")")
    f.write(str(xb) + "(" + str(up) + "," + str(down) + ")" + "\t")

    f.write("\n")
    f.close()
    """
Esempio n. 3
0
def output(level, cluster_trajectories, semantic_trajectories, u, k, w, f):
    print("(", u.shape[0], ",", k, ",", w, ")---------------")
    f.write(str(u.shape[0]) + " , " + str(k) + " , " + str(w) + "\t")

    npe = cindex.npe(u)
    print("NPE--\t\t", npe)
    f.write(str(npe) + "\t")

    npc = cindex.npc(u)
    print("NPC--\t\t", npc)
    f.write(str(npc) + "\t")

    xb, up, down = cindex.xb(level, u, k, w, cluster_trajectories, semantic_trajectories)
    print("XB--\t\t", xb, "\t(", up, ",", down, ")")
    f.write(str(xb) + "(" + str(up) + "," + str(down) + ")" + "\n")
Esempio n. 4
0
def output(level, cluster_trajectories, semantic_trajectories, u, k, w, f):
    print("(", u.shape[0], ",", k, ",", w, ")---------------")
    f.write(str(u.shape[0]) + " , " + str(k) + " , " + str(w) + "\t")

    npe = cindex.npe(u)
    print("NPE--\t\t", npe)
    f.write(str(npe) + "\t")

    npc = cindex.npc(u)
    print("NPC--\t\t", npc)
    f.write(str(npc) + "\t")

    xb, up, down = cindex.xb(level, u, k, w, cluster_trajectories,
                             semantic_trajectories)
    print("XB--\t\t", xb, "\t(", up, ",", down, ")")
    f.write(str(xb) + "(" + str(up) + "," + str(down) + ")" + "\n")