public enum TestData extends Enum<TestData>
Using this example. Supplies historical example stock sets for the Infantino demos, including explicit exclusions for insufficient data. These lists are not current or point-in-time S&P 500 membership. TEN_CHOOSEN_PLUS_NDX currently returns TEN_CHOOSEN.stocks(), so the created Nasdaq index addition is discarded; see the audit notes before using it.
Model and publication. This enum is example input selection for the PCA demonstrations, not a model described in the thesis.
Implementation in this tutorial. stocks() supplies each example’s universe. Availability exclusions are historical hand- maintained choices, and the chosen names and sample frequency differ from the thesis. Retain a point-in-time universe when doing a historical study; do not equate this enum with the paper’s 50-stock sample.
| Enum Constant and Description |
|---|
SP500 |
SP500_IT |
SP500_PLUS_GSPC |
STOCKS_WITH_INSUFFICIENT_DATA |
TEN_CHOOSEN |
TEN_CHOOSEN_PLUS_NDX |
| Modifier and Type | Method and Description |
|---|---|
abstract Set<Stock> |
stocks() |
static TestData |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestData[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestData STOCKS_WITH_INSUFFICIENT_DATA
public static final TestData SP500
public static final TestData SP500_PLUS_GSPC
public static final TestData SP500_IT
public static final TestData TEN_CHOOSEN
public static final TestData TEN_CHOOSEN_PLUS_NDX
public static TestData[] values()
for (TestData c : TestData.values()) System.out.println(c);
public static TestData valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2026. All rights reserved.