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

commonMain.jetbrains.datalore.plot.config.StatKind.kt Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
/*
 * Copyright (c) 2019. JetBrains s.r.o.
 * Use of this source code is governed by the MIT license that can be found in the LICENSE file.
 */

package jetbrains.datalore.plot.config

import jetbrains.datalore.base.enums.EnumInfoFactory

enum class StatKind {
    IDENTITY,
    COUNT,
    COUNT2D,
    BIN,
    BIN2D,
    DOTPLOT,
    SMOOTH,
    CONTOUR,
    CONTOURF,
    BOXPLOT,
    DENSITYRIDGES,
    YDENSITY,
    YDOTPLOT,
    DENSITY,
    DENSITY2D,
    DENSITY2DF,
    QQ,
    QQ2,
    QQ_LINE,
    QQ2_LINE;


    companion object {

        private val ENUM_INFO = EnumInfoFactory.createEnumInfo()

        fun safeValueOf(name: String): StatKind {
            return ENUM_INFO.safeValueOf(name) ?: throw IllegalArgumentException("Unknown stat name: '$name'")
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy