%@ 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.