/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2011, Richard Lowe
*/
/**
* action. Aggregated values are aggregated logarithmicly by order of
* magnitude (between the low and high magnitude arguments of the {@code
* llquantize()} action, but linearly within each order of magnitude bounded
* by the step parameter of the {@code llquantize()} action.
*
* @see LinearDistribution
* @see LogLinearDistribution
* @see Aggregation
*/
{
}
/** @serial */
private long encValue;
/** @serial */
private long base;
static {
try {
LogLinearDistribution.class);
} catch (IntrospectionException e) {
}
}
/**
* Called by the native C code
*/
}
/**
* and frequencies. Used by XML Persistence.
*
* @param enc The encoded representation of the high, low, step and steps
* {@code llquantize()} paramaters.
* @param base The base value of the distirbution
* @param frequencies list of frequencies in each bucket range
*/
super(frequencies);
initialize();
}
/**
* values and frequencies.
*
* @param scaleFactor factor
* @param lowMagnitude the low magnitude
* @param highMagnitude the high magnitude
* @param bucketSteps number of linear steps per magnitude
* @param baseVal basue value
* @param frequencies list of frequencies in each bucket range
*/
super(frequencies);
initialize();
}
long value = 1;
if (rangeCache == null)
bucket++;
bucket++;
continue;
order++;
}
}
/**
* Gets a two element array: the first element is the range minimum
* (inclusive), the second element is the range maximum (inclusive).
*/
if (rangeCache == null)
return rangeCache[i];
}
}
double total = 0;
}
private long getZeroBucketValue() {
for (Distribution.Bucket b : this) {
if (b.getMin() == 0) {
return b.getFrequency();
}
}
return 0;
}
/**
* Compares the {@code double} values of {@link #getValue()} for overall
* magnitude, and if those are equal, compares frequencies at zero if the
* distrubions includea bucket whose range has a minimum of zero.
*/
if (cmp == 0) {
long z1 = getZeroBucketValue();
long z2 = d.getZeroBucketValue();
}
return (cmp);
}
public long getBase() {
return base;
}
public long getEncValue() {
return encValue;
}
throws IOException, ClassNotFoundException {
s.defaultReadObject();
try {
initialize();
} catch (Exception e) {
e.getMessage());
x.initCause(e);
throw x;
}
}
}