<%@ page import="java.util.Random" %> <%@ page import="com.ikatun.reimaginings.artlogic.MetaData" %> <%@ page import="java.util.ArrayList" %> <%@ page import="java.util.List" %> <% Random random = new Random(); String[] colors = new String[]{"red", "orange", "yellow", "green", "blue", "indigo", "violet"}; MetaData metaData = MetaData.get(); //@todo this should be total conversations int neModelNumElements = metaData.totalConversations; //@todo this should be total # of histories int cModelNumElements_display = metaData.totalHistories; int histories = metaData.totalHistories; while (histories > 40) { histories = histories/7; } int cModelNumElements= histories; int rModelNumElements_display = metaData.totalLines; int noModelNumElements_display = metaData.totalLines; int nlines = metaData.totalLines; int rlines = metaData.totalLines; while (nlines > 40) { nlines = nlines/7; } while (rlines > 20) { rlines = rlines/7; } //@todo this should be total lines, too, i guess int rModelNumElements = rlines; //@todo this should be total lines int noModelNumElements = nlines; //@todo - should increment with each page hit int rSpectrumGeneration = metaData.spectrumGeneration; //@todo this should be largest # lines collected on one day minus smallest # of lines collected on one day -- if that's hard, then it could be something else int tInEquation = random.nextInt(100); //@todo should be average of correlation rankings float correlation = metaData.correlation; //@todo should be % of people who answered perfect on survey float perfectionRatio = metaData.perfectionRatio * 100; //@todo should be % of people who answered good on survey float goodRatio = metaData.goodRatio * 100; List numeratorColors = new ArrayList(neModelNumElements + cModelNumElements + noModelNumElements); List denominatorColors = new ArrayList(7 * (rModelNumElements + 7)); %> reimaginings

This is Generation Rx-<%= rSpectrumGeneration %> of rSpectrum 2.0. Once the Ideal rSpectrum 2.0 is achieved, rSpectrum 2.0 will be a more perfect representation of the perceptual and conceptual phenomenon of color in the current age of complexity and informatic dynamism.


DATA AGGREGATION FOR rSpectrum 2.0*

CURRENT GENERATION =   Rx-<%= rSpectrumGeneration %>
x = Total Nm Entries =   <%= neModelNumElements %>
c = Total Nom Line Count =   <%= noModelNumElements_display %>
(delta)t = Time-sequenced lines =   <%=tInEquation %>
h = Chronological Maximum =   <% %> <%= cModelNumElements_display %>
Perfection Ratio =   <% //@todo this should be % who answered perfect %> Generation Rx-<%= rSpectrumGeneration %> is <%= perfectionRatio %>% perfect
Psycho-emotive Impact Ratio =   <% //@todo this should be % who answered good %> Generation Rx-<%= rSpectrumGeneration %> creates <%= goodRatio %>% good inner emotional states.
Overall Correlation to the Ideal rSpectrum 2.0 =   <%= correlation %>
     


*MATHEMATICAL PROOF*
Step 1:
rSpectrum 2.0 = the RPE 2004 rX rSpectrum 2.0 generator


Step 2:
rSpectrum 2.0 = Summations of the Four Models (Nem, Cm, Rm, Nom)
<% for (int i=0; i   <%}%> + ( <% for (int i=0; i   <%}%> ) + [( <% for (int i=0; i   <%}%> ) - 1]
7( <% for (int i=0; i <%}%> + 7)

Step 3:
rSpectrum 2.0 = Resulting Aggregation
<% //subtract 1 from numerator because of equation for (int i=0; i< numeratorColors.size() - 1; i++) { String url = null; int model = random.nextInt(3); if (model ==0) { url = "roygbiv.jsp"; } else if(model == 1) { url = "nodal.jsp?conversationId=" + metaData.conversationIds.get(random.nextInt(metaData.conversationIds.size())); } else { url = "histories.jsp?historyId=" + metaData.historyIds.get(random.nextInt(metaData.historyIds.size())); } %>   <%}%>
<% //add 7 colors for (int i=0; i<7; i++) { denominatorColors.add(colors[random.nextInt(colors.length)]); } //multply colors by 7 for (int i=0; i<7; i++) { for (int j=0; j< denominatorColors.size(); j++) { %>   <%} //end j }//end i%>

Step 4:
rSpectrum 2.0 =
Final Result - rSpectrum 2.0
<% int spectrumCount = numeratorColors.size() - 1 - (denominatorColors.size() * 7); //subtract 1 from numerator because of equation int numItems = Math.abs(spectrumCount); for (int i=0; i< Math.min(numeratorColors.size(), numItems); i++) { String url = null; int model = random.nextInt(4); if (model ==0) { url = "roygbiv.jsp"; } else if(model == 1) { url = "nodal.jsp?conversationId=" + metaData.conversationIds.get(random.nextInt(metaData.conversationIds.size())); } else if (model == 2) { url = "histories.jsp?historyId=" + metaData.historyIds.get(random.nextInt(metaData.historyIds.size())); } else { url = "conversation.jsp?conversationId=" + metaData.conversationIds.get(random.nextInt(metaData.conversationIds.size())); } %> <%}%>