def aggPosition(x):
    """Aggregate position data inside a segment

    Args:
        x: Position values in a segment        
    
    Returns:
        Aggregated position (single value)
    """

    return x.mean()