All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.space.kscience.kmath.domains.RealDomain.kt Maven / Gradle / Ivy

/* 
 * Copyright 2015 Alexander Nozik.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package space.kscience.kmath.domains

import space.kscience.kmath.linear.Point

/**
 * n-dimensional volume
 *
 * @author Alexander Nozik
 */
public interface RealDomain : Domain {
    public fun nearestInDomain(point: Point): Point

    /**
     * The lower edge for the domain going down from point
     * @param num
     * @param point
     * @return
     */
    public fun getLowerBound(num: Int, point: Point): Double?

    /**
     * The upper edge of the domain going up from point
     * @param num
     * @param point
     * @return
     */
    public fun getUpperBound(num: Int, point: Point): Double?

    /**
     * Global lower edge
     * @param num
     * @return
     */
    public fun getLowerBound(num: Int): Double?

    /**
     * Global upper edge
     * @param num
     * @return
     */
    public fun getUpperBound(num: Int): Double?

    /**
     * Hyper volume
     * @return
     */
    public fun volume(): Double
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy