public static Core.MAType GetRandom() { switch (XRandom.next(8)) { case 0: return(Core.MAType.Sma); case 1: return(Core.MAType.Dema); case 2: return(Core.MAType.Ema); case 3: return(Core.MAType.Kama); case 4: return(Core.MAType.Mama); case 5: return(Core.MAType.T3); case 6: return(Core.MAType.Tema); case 7: return(Core.MAType.Trima); default: return(Core.MAType.Wma); } }
public static ActivationFunction GetRandomFunction() { switch (XRandom.next(15)) { default: case 1: return(ActivationFunction.SIGMOID_SYMMETRIC_STEPWISE); case 2: return(ActivationFunction.ELLIOT); case 3: return(ActivationFunction.ELLIOT_SYMMETRIC); case 4: return(ActivationFunction.GAUSSIAN); case 5: return(ActivationFunction.GAUSSIAN_STEPWISE); case 6: return(ActivationFunction.GAUSSIAN_SYMMETRIC); case 7: return(ActivationFunction.LINEAR); case 8: return(ActivationFunction.LINEAR_PIECE); case 9: return(ActivationFunction.LINEAR_PIECE_SYMMETRIC); case 10: return(ActivationFunction.SIGMOID); case 11: return(ActivationFunction.SIGMOID_STEPWISE); case 12: return(ActivationFunction.SIGMOID_SYMMETRIC); case 13: return(ActivationFunction.COS_SYMMETRIC); case 14: return(ActivationFunction.SIN_SYMMETRIC); case 15: return(ActivationFunction.THRESHOLD); } }
public static int GetRandom(int count) { // int[] periods = { 3, 5, 7, 10, 13, 16, 19, 23, 27, 30 }; return(XRandom.next(2, count - 1)); }
public static MethodInfo GetRandomMethod(int randomSeed) { return(Data.TALibMethods[XRandom.next(Data.TALibMethods.Count - 1)]); }