def maptosequence(fseq,iseq):
    """
    Map a sequence of floats, each element in range 0.0-1.0,
    to an another sequence of values, find the elements whose indexes are
    equivalent to a relative position in a range 0-1.0.

    :param fseq: A list of float values
    :param iseq: A list of target values
    :return: A list of integer values equivalent to range of floats.
    """
    equiv_seq = []
    folds = len(iseq)-1
    for i in fseq:
        if i<0 or i>1.0:
            print("Error: Sequence of floats should be only values "
                  "between 0.0 and 1.0")
            return None
        equiv_seq.append(iseq[round(float(i)*folds)])
    return(equiv_seq)