Skip to content

Commit ec35d54

Browse files
committed
getter
1 parent de00bd8 commit ec35d54

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/ubic/basecode/math/linearmodels/DesignMatrix.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ public class DesignMatrix {
6565

6666
private final Set<String[]> interactions = new LinkedHashSet<>();
6767

68+
/**
69+
*
70+
* @return a collection of String arrays. If empty, there are no interactions. Each array represents an interaction
71+
* in the model. The elements of the array are the terms included in the interaction, as Strings provided when calling addInteraction.
72+
*/
73+
public Collection<String[]> getInteractionTerms() {
74+
return interactions;
75+
}
76+
6877
/**
6978
* Only applied for categorical factors.
7079
*/

0 commit comments

Comments
 (0)