def METHOD_NAME():
    """Test anomaly detection with 1D input array with missing values."""
    X = np.array(
        [
            np.nan,
            -5.72257076,
            -4.91555882,
            -8.3456977,
            -5.57087531,
            0.0,
            6.50605589,
            5.42526004,
            5.45336814,
            5.435548,
            5.10996217,
        ]
    )
    y_expected = np.array([0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0])
    scaler = MinMaxScaler()
    X = scaler.fit_transform(X.reshape(-1, 1))
    model = STRAY(k=3)
    fitted_model = model.fit(X)
    y_actual = fitted_model.y_
    assert np.allclose(y_actual, y_expected)