content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
package edu.stanford.math.plex4.examples;
import java.util.Arrays;
import edu.stanford.math.plex4.utility.RandomUtility;
import edu.stanford.math.primitivelib.autogen.array.DoubleArrayMath;
/**
* This static class contains various functions which produce
* examples of point cloud data sets.
*
* @author Andrew ... | __label__POS | 0.988818 |
package edu.stanford.math.plex4.examples;
import edu.stanford.math.plex4.homology.chain_basis.Cell;
import edu.stanford.math.plex4.streams.impl.ExplicitCellStream;
/**
* This class contains various static functions for producing cell complexes.
*
* @author Andrew Tausz
*
*/
public class CellStreamExamples {
/... | __label__POS | 0.982207 |
package edu.stanford.math.plex4.examples;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.utility.HomologyUtility;
import edu.stanford.math.plex4.streams.impl.ExplicitSimplexStream;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu... | __label__POS | 0.997533 |
package edu.stanford.math.plex4.examples;
import java.util.ArrayList;
import java.util.List;
import edu.stanford.math.plex4.homology.chain_basis.Cell;
import edu.stanford.math.plex4.streams.impl.ExplicitCellStream;
import edu.stanford.math.primitivelib.autogen.array.IntArrayMath;
import edu.stanford.math.primitivelib... | __label__POS | 0.996397 |
package edu.stanford.math.plex4.io;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import edu.stanford.math.plex4.utility.ExceptionUtility;
import edu.stanford.math.primitivelib.autogen.array.IntArrayMath;
/**
* This class holds a table of string values. It ... | __label__POS | 0.990745 |
package edu.stanford.math.plex4.io;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import cern.colt.matrix.DoubleMatrix1D;
import cern.colt.matrix.DoubleMatrix2D;
/**
* This class encapsulates writing to Matlab files. It conta... | __label__POS | 0.895936 |
package edu.stanford.math.plex4.io;
import gnu.trove.THashMap;
import java.awt.image.BufferedImage;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import com.sun.media.jai.codec.ImageCodec;
import com.sun.media.jai.codec.ImageEncoder;
public class BufferedImageWrit... | __label__POS | 0.916158 |
package edu.stanford.math.plex4.io;
import java.awt.image.BufferedImage;
import java.io.IOException;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
import edu.stanford.math.plex4.visualization.BarcodeVisualizer;
public clas... | __label__POS | 0.977171 |
package edu.stanford.math.plex4.io;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.streams.impl.ExplicitSimplexStream;
import edu... | __label__POS | 0.912254 |
package edu.stanford.math.plex4.io;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
public class DoubleArrayReaderWriter implements ObjectReader<double[][]>, ObjectWriter<double[][]> {
private static final DoubleArrayReaderWriter instance = new DoubleArray... | __label__POS | 0.988377 |
package edu.stanford.math.plex4.io;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* This class returns canonical paths so that they are in the appropriate format
* for the OS in use (e.g. / in linux vs. ... | __label__POS | 0.942851 |
package edu.stanford.math.plex4.io;
import java.io.IOException;
import cern.colt.matrix.DoubleMatrix2D;
import edu.stanford.math.plex4.utility.ExceptionUtility;
import edu.stanford.math.primitivelib.autogen.array.IntArrayMath;
/**
* This class has static methods for creating Matlab files to visualize data.
*
* @... | __label__POS | 0.799541 |
package edu.stanford.math.plex4.io;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import edu.stanford.math.plex4.homology.chain_basis.SimplexComparator;
import edu.stanford.math.plex4.metric.impl.EuclideanMetricSpace;
import ed... | __label__POS | 0.960706 |
package edu.stanford.math.plex4.utility;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Random;
/**
* This class contains an implement of the quicksort and other related
* algorithms, such as the selection of order statistics.
*
* It is based on chapter 8 and ... | __label__POS | 0.997705 |
package edu.stanford.math.plex4.utility;
import java.util.Arrays;
public class ArrayUtility {
public static double[][] getSubset(double[][] points, int[] indices) {
double[][] result = new double[indices.length][];
for (int i = 0; i < indices.length; i++) {
result[i] = points[indices[i]];
}
return r... | __label__POS | 0.999997 |
package edu.stanford.math.plex4.utility;
import gnu.trove.TIntHashSet;
import cern.jet.random.Normal;
import cern.jet.random.Uniform;
/**
* This class contains static members for generating random numbers.
*
* @author Andrew Tausz
* @author Tim Harrington
*
*/
public class RandomUtility {
private static No... | __label__POS | 0.997576 |
package edu.stanford.math.plex4.utility;
/**
* This class contains various static utility functions
* relating to math.
*
* @author Andrew Tausz
*
*/
public class MathUtility {
public static long euclideanGcd(long a, long b) {
while (b != 0) {
long t = b;
b = a % b;
a = t;
}
return a;
}
publ... | __label__POS | 0.986254 |
package edu.stanford.math.plex4.utility;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum;
import edu.stanford.math.primitivel... | __label__POS | 0.989772 |
package edu.stanford.math.plex4.utility;
import gnu.trove.TIntHashSet;
import gnu.trove.TIntIterator;
import java.util.Collection;
/**
* This class contains static methods for comparing various objects.
*
* @author Andrew Tausz
*
*/
public class ComparisonUtility {
// default precision values
public static ... | __label__POS | 0.998887 |
#import "AMAAppMetricaImpl+TestUtilities.h"
#import "AMAEventCountDispatchStrategy.h"
#import "AMATimerDispatchStrategy.h"
#import "AMAReporterStorage.h"
@implementation AMAAppMetricaImpl (TestUtilities)
- (AMAEventCountDispatchStrategy *)eventCountDispatchStrategyInSet:(NSSet *)strategies forApiKey:(NSString *)apiK... | __label__POS | 0.762 |
/**
*
*/
package edu.stanford.math.plex4.graph;
import edu.stanford.math.plex4.utility.ExceptionUtility;
import edu.stanford.math.primitivelib.autogen.pair.IntIntPair;
import gnu.trove.TIntDoubleHashMap;
import gnu.trove.TIntDoubleIterator;
import gnu.trove.TIntHashSet;
import gnu.trove.TIntIntHashMap;
import gnu.t... | __label__POS | 0.971872 |
package edu.stanford.math.plex4.graph;
import java.io.Serializable;
import java.util.Iterator;
import edu.stanford.math.primitivelib.autogen.pair.IntIntPair;
import gnu.trove.TIntHashSet;
/**
* This interface abstracts the functionality of an unweighted graph.
* The graph must be undirected. The vertices of the gr... | __label__POS | 0.998935 |
/**
*
*/
package edu.stanford.math.plex4.graph;
import java.util.Iterator;
import edu.stanford.math.primitivelib.autogen.pair.IntIntPair;
import gnu.trove.TIntDoubleHashMap;
import gnu.trove.TIntHashSet;
import gnu.trove.TIntIterator;
import gnu.trove.TIntObjectHashMap;
import gnu.trove.TIntObjectIterator;
/**
*... | __label__POS | 0.991115 |
/**
*
*/
package edu.stanford.math.plex4.graph;
import edu.stanford.math.primitivelib.autogen.pair.IntIntPair;
import gnu.trove.TIntHashSet;
import gnu.trove.TIntIntHashMap;
import gnu.trove.TIntIntIterator;
import gnu.trove.TIntObjectHashMap;
import java.util.Iterator;
/**
* This class implements the functional... | __label__POS | 0.98184 |
package edu.stanford.math.plex4.generation;
import java.util.List;
import java.util.Vector;
import edu.stanford.math.primitivelib.generation.ClassSpecifier;
import edu.stanford.math.primitivelib.generation.JavaCodeGenerator;
/**
* This class contains functions for creating auto-generated code. In particular it gene... | __label__POS | 0.96066 |
package edu.stanford.math.plex4.bottleneck;
/**
*
* The Ford-Fulkerson Algorithm
*
*
* @author Tim Harrington
* @date Mar 12, 2009
*
*
* NOTICE: This is from
* http://www-b2.is.tokushima-u.ac.jp/~ikeda/suuri/maxflow/Maxflow.java
* File: Maxflow.java based on Ford-Fulkerson Method Copy... | __label__POS | 0.923119 |
package edu.stanford.math.plex4.bottleneck;
public class FlowEdge {
private final int source;
private final int dest;
private int capacity;
private FlowEdge reverseEdge = null;
public FlowEdge(int source, int dest, int capacity) {
this.source = source;
this.dest = dest;
this.capacity = capacity;
}
pu... | __label__POS | 0.99717 |
package edu.stanford.math.plex4.bottleneck;
import gnu.trove.THashSet;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
public class WeightedBipartiteGraph {
class WeightedEdge {
public int source;
public int destination;
public double weight;
}
private... | __label__POS | 0.963611 |
package edu.stanford.math.plex4.bottleneck;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.primitivelib.utility.Infinity;
public class BottleneckDistance {
public static List<Interval<Double>> truncate... | __label__POS | 0.94899 |
package edu.stanford.math.plex4.bottleneck;
import edu.stanford.math.primitivelib.autogen.pair.ObjectIntPair;
import gnu.trove.THashSet;
import gnu.trove.TIntObjectHashMap;
import gnu.trove.TObjectIntHashMap;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class FlowNetwork {
TIntObj... | __label__POS | 0.990664 |
// <copyright file="IMetricContextRegistry.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using App.Metrics.Apdex;
using App.Metrics.BucketHistogram;
using App.Metrics.BucketTimer;
using App.Metrics.Counter;
using App.Metrics.Gauge... | __label__POS | 0.754559 |
// <copyright file="IMetricsRegistry.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using App.Metrics.Apdex;
using App.Metrics.BucketHistogram;
using App.Metrics.BucketTimer;
using App.Metrics.Counter;
using App.Metrics.Filters;
us... | __label__POS | 0.695989 |
package edu.stanford.math.plex4.visualization;
public class PointCloudScaling {
/**
*
* Returns a scaled version of the point cloud. Scales the coordinates by
* computing overall minimum and maximum and scaling uniformly in all
* directions such that all coordinates fit in a box of dimensions: [-scale,
* ... | __label__POS | 0.927628 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.900566 |
// <copyright file="MetricsFormatterCollection.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace App.Metrics.Formatters
{
public class MetricsForma... | __label__POS | 0.899232 |
// <copyright file="EnvFormatterCollection.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace App.Metrics.Formatters
{
public class EnvFormatterColl... | __label__POS | 0.90292 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.862449 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import java.util.Iterator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.interfaces.AbstractPersiste... | __label__POS | 0.813733 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Map;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.inter... | __label__POS | 0.790034 |
// <copyright file="MetricsReporterCollection.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using App.Metrics.Reporting;
namespace App.Metrics.Formatters
{
... | __label__POS | 0.839674 |
// <copyright file="MetricsFormatterReadonlyCollectionExtensions.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
namespace App.Metrics.Formatters
{
public static class Metric... | __label__POS | 0.977374 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.interfaces.AbstractPersistenceBasisAlgorithm;
import e... | __label__POS | 0.831944 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.941794 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.857337 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.963111 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.807509 |
package edu.stanford.math.plex4.streams.filter;
import edu.stanford.math.plex4.metric.interfaces.AbstractIntMetricSpace;
import edu.stanford.math.plex4.metric.utility.DensityEstimation;
public class KernelDensityFilterFunction implements IntFilterFunction {
private final double[] densities;
private boolean maxMinCo... | __label__POS | 0.92665 |
package edu.stanford.math.plex4.streams.filter;
import edu.stanford.math.plex4.metric.interfaces.AbstractIntMetricSpace;
public class EccentricityFilterFunction implements IntFilterFunction {
private final double[] eccentricities;
private double maxValue;
private double minValue;
public EccentricityFilterFuncti... | __label__POS | 0.961071 |
package edu.stanford.math.plex4.streams.derived;
import java.util.Comparator;
import java.util.Iterator;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;... | __label__POS | 0.899874 |
/**
*
*/
package edu.stanford.math.plex4.streams.derived;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology... | __label__POS | 0.778516 |
package edu.stanford.math.plex4.streams.storage_structures;
import java.util.Iterator;
import edu.stanford.math.primitivelib.autogen.pair.IntObjectPair;
/**
* This class provides iteration over the second component of each element
* in an Iterable collection of type IntObjectPair<E>. It essentially
* ignores the... | __label__POS | 0.886189 |
package edu.stanford.math.plex4.streams.storage_structures;
import gnu.trove.TIntObjectHashMap;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
/**
* This class implements the Iterator interface for a HashedStorageStructure. It allows
* the user to traverse the structure in increasing or... | __label__POS | 0.98829 |
/**
*
*/
package edu.stanford.math.plex4.streams.storage_structures;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import edu.stanford.math.primitivelib.autogen.pair.IntObjectPair;
import edu.stanford.math.primitivelib.autog... | __label__POS | 0.850936 |
package edu.stanford.math.plex4.streams.storage_structures;
import java.util.Comparator;
/**
* This interface defines the functionality of a stream storage structure. Such
* a structure is designed to be the backing of a streamed filtered chain complex.
*
* Note that this interface extends the Iterable<T> interf... | __label__POS | 0.998929 |
package edu.stanford.math.plex4.streams.storage_structures;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
/**
* This class contains various convenience functions for constructing stream storage structures. It also
* defines the default stream storage struct... | __label__POS | 0.923093 |
/**
*
*/
package edu.stanford.math.plex4.streams.storage_structures;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import gnu.trove.TIntObjectHashMap... | __label__POS | 0.633966 |
package edu.stanford.math.plex4.streams.utility;
import java.util.Comparator;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
/**
* This class provides filtration based comparison of basis elements. It implements
* a dictionary ordering where first the filtration indices are compared, and... | __label__POS | 0.977609 |
package edu.stanford.math.plex4.streams.utility;
import java.util.ArrayList;
import java.util.List;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.graph.UndirectedListGraph;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homolo... | __label__POS | 0.98894 |
package edu.stanford.math.plex4.streams.utility;
import java.util.ArrayList;
import java.util.List;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.metric.interfaces.AbstractObjectMetricSpace;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import ... | __label__POS | 0.955239 |
#import "AMACore.h"
#import "AMAEventSumBoundBasedModelHelper.h"
#import "AMABoundMapping.h"
#import "AMAMetricaConfiguration.h"
#import "AMAMetricaPersistentConfiguration.h"
#import "AMABoundMappingChecker.h"
@interface AMAEventSumBoundBasedModelHelper ()
@property (nonatomic, strong, readonly) AMABoundMappingCheck... | __label__POS | 0.713327 |
package edu.stanford.math.plex4.streams.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import edu.stanford.math.plex4.homology.chain_basis.Cell;
import edu.stanford.math.plex4.homology.chain_basis.CellComparator;
import gnu.trove.TIntObjectHashMap;
/**
* This class is a wrappe... | __label__POS | 0.939171 |
/**
*
*/
package edu.stanford.math.plex4.streams.impl;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
import edu.stanford.math.plex4.homology.... | __label__POS | 0.86087 |
/**
*
*/
package edu.stanford.math.plex4.streams.impl;
import edu.stanford.math.plex4.graph.UndirectedWeightedListGraph;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
import edu.stanford.math.plex4.homology.chain_basis.Sim... | __label__POS | 0.789431 |
package edu.stanford.math.plex4.streams.impl;
import java.util.List;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.chain_basis.SimplexPair;
import edu.stanford.math.plex4.homology.chain_basis.SimplexPairComparator;
public class WitnessBicomplex<T> extends Explic... | __label__POS | 0.995796 |
#import "AMACore.h"
#import "AMADeepLinkPayloadFactory.h"
#import "AMAErrorsFactory.h"
@implementation AMADeepLinkPayloadFactory
+ (NSDictionary *)deepLinkPayloadForURL:(NSURL *)URL
ofType:(NSString *)type
isAuto:(BOOL)isAuto
... | __label__POS | 0.843006 |
package edu.stanford.math.plex4.streams.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import edu.stanford.math.plex4.graph.UndirectedWeightedListGraph;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.filtration.ExternalConverter;... | __label__POS | 0.820459 |
package edu.stanford.math.plex4.streams.impl;
import java.util.ArrayList;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Deque;
import java.util.List;
//import java.util.Collections;
//import org.apache.commons.lang.ArrayUtils;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import... | __label__POS | 0.674678 |
package edu.stanford.math.plex4.streams.impl;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.chain_basis.SimplexComparator;
/**
* This class is a wrapper for the ExplicitStream class and provides
* convenience functions when the ba... | __label__POS | 0.992822 |
/**
*
*/
package edu.stanford.math.plex4.streams.impl;
import edu.stanford.math.plex4.graph.UndirectedWeightedListGraph;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.filtration.FiltrationConverter;
import edu.stanford.math.plex4.metric.interfaces.AbstractSearc... | __label__POS | 0.926072 |
/**
*
*/
package edu.stanford.math.plex4.streams.impl;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.filtration.ExternalConverter;
import edu.stanford.math.plex4.homology.filtration.IncreasingLinearConverter;
import edu.stanford.math.plex4.metric.interfaces.Abs... | __label__POS | 0.925158 |
package edu.stanford.math.plex4.streams.multi;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import edu.stanford.math.plex4.streams.impl.ExplicitStream;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.math.primitivelib.utility.Infinity;
public... | __label__POS | 0.990503 |
package edu.stanford.math.plex4.streams.multi;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
public interface AbstractMultifilteredStream<T> extends Iterable<T> {
/**
* This function retur... | __label__POS | 0.927674 |
package edu.stanford.math.plex4.streams.multi;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import edu.stanford.math.plex4.streams.impl.ExplicitStream;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.math.primitivelib.autogen.array.DoubleArray... | __label__POS | 0.999814 |
package edu.stanford.math.plex4.streams.multi;
import java.util.Iterator;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import gnu.trove.THashMap;
p... | __label__POS | 0.910575 |
/**
*
*/
package edu.stanford.math.plex4.homology.zigzag;
public class IntervalDescriptor<T, G> {
protected final T start;
protected final G generator;
protected final int dimension;
public IntervalDescriptor(T start, int dimension, G generator) {
super();
this.start = start;
this.dimension = dimension... | __label__POS | 0.992322 |
package edu.stanford.math.plex4.homology.zigzag;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import edu.stanford.math.plex4.homology.interfaces.AbstractPersistenceAlgorithm;
import edu.stanf... | __label__POS | 0.879723 |
package edu.stanford.math.plex4.homology.zigzag;
import java.util.HashMap;
import java.util.Map;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanfo... | __label__POS | 0.77673 |
package edu.stanford.math.plex4.homology.zigzag;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import edu.stanford.math.primitivelib.au... | __label__POS | 0.981999 |
package edu.stanford.math.plex4.homology.zigzag;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.ho... | __label__POS | 0.701898 |
package edu.stanford.math.plex4.homology.nonautogen;
@Deprecated
public class DisjointSetSystem {
int capacity = 16;
int size = 0;
int[] parents = null;
int[] ranks = null;
public DisjointSetSystem(int size) {
while (capacity < size) {
capacity *= 2;
}
this.size = size;
this.parents = new int[capa... | __label__POS | 0.990452 |
package edu.stanford.math.plex4.homology.nonautogen;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.interfaces.AbstractPersistenceAl... | __label__POS | 0.765197 |
package edu.stanford.math.plex4.homology.filtration;
import java.util.Arrays;
/**
* <p>
* This class implements a conversion between filtration values and filtration
* indices that is given as an argument at instantiation of the converter. The
* given filtration values array will be sorted.
* </p>
*
* @author... | __label__POS | 0.997548 |
package edu.stanford.math.plex4.homology.filtration;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
import edu.stanford.math.primitivelib.autogen.functional.ObjectObjectFunction;
/**
* This interface defines a mapping betw... | __label__POS | 0.989473 |
package edu.stanford.math.plex4.homology.filtration;
/**
* This class defines a filtration value conversion which simply defines the filtration
* value to be equal to the filtration index. (i.e. f_i = i)
*
* @author Andrew Tausz
*
*/
public class IdentityConverter extends FiltrationConverter {
/**
* This ... | __label__POS | 0.996441 |
package edu.stanford.math.plex4.homology.filtration;
/**
* <p>This class implements a conversion between filtration values and filtration
* indices that is linear and increasing. If we let f_k be the filtration value
* at index k and N is the number of divisions, then this mapping satisfies:
* <ul>
* <li>f_k = ... | __label__POS | 0.968586 |
/**
*
*/
package edu.stanford.math.plex4.homology.filtration;
/**
* This class implements the FiltrationConverter interface for static complexes.
* It simply sets all of the filtration values and indices to 0.
*
* @author Andrew Tausz
*
*/
public class StaticConverter extends FiltrationConverter {
/**
*... | __label__POS | 0.983765 |
/*
* Copyright 2013 APPNEXUS INC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | __label__POS | 0.87257 |
package com.appnexus.opensdk.utils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
public class JsonUtil {
// also returns null if array is empty
public static JSONArray getJSONArray(JSONOb... | __label__POS | 0.998956 |
package com.appnexus.opensdk.utils;
//See http://www.w3.org/TR/calendar-api/#idl-def-CalendarRepeatRule
//Question marks denote optional parameters.
public class W3CRepeatRule {
//Repeat rule?
private String frequency;//?
private int interval;//?
private String expires;//?
private String[] exceptio... | __label__POS | 0.895562 |
package edu.stanford.math.plex4.homology.chain_basis;
import java.util.Comparator;
public class SimplexPairComparator implements Comparator<SimplexPair> {
private static final SimplexComparator simplexComparator = SimplexComparator.getInstance();
/**
* This is the single instantiation of the class.
*/
priv... | __label__POS | 0.999518 |
package edu.stanford.math.plex4.homology.chain_basis;
import edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair;
public class SimplexPair extends ObjectObjectPair<Simplex, Simplex> implements PrimitiveBasisElement {
public SimplexPair(Simplex first, Simplex second) {
super(first, second);
}
public S... | __label__POS | 0.997922 |
package edu.stanford.math.plex4.homology.chain_basis;
import java.util.Arrays;
import edu.stanford.math.plex4.homology.utility.HomologyUtility;
import edu.stanford.math.primitivelib.utility.CRC;
/**
* <p>This class implements the functionality of a simplex. A simplex
* is an n-dimensional polytope which is the con... | __label__POS | 0.972859 |
/**
*
*/
package edu.stanford.math.plex4.homology.chain_basis;
import java.util.Arrays;
import java.util.Collection;
import edu.stanford.math.plex4.homology.utility.HomologyUtility;
import edu.stanford.math.plex4.utility.ExceptionUtility;
import edu.stanford.math.primitivelib.utility.CRC;
/**
* This class implem... | __label__POS | 0.77482 |
/**
*
*/
package edu.stanford.math.plex4.homology.chain_basis;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.utility.HomologyUtility;
/**
* This class defines the standard ordering on the Simplex class and
* implements the Comparator<Simplex> interface. The ordering of the
* simplices is... | __label__POS | 0.963711 |
/**
*
*/
package edu.stanford.math.plex4.homology.chain_basis;
import java.util.Comparator;
/**
* This class provides functionality for comparing two cells within a CW complex.
* The comparison mechanism first compares the dimensions of the cells. If the
* dimensions are equal then it looks at the cellId value... | __label__POS | 0.988693 |
package edu.stanford.math.plex4.homology.barcodes;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import edu.stanford.math.plex4.utility.ComparisonUtility;
impo... | __label__POS | 0.957325 |
package edu.stanford.math.plex4.homology.barcodes;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AnnotatedBarcodeCollection<T extends Comparable<T>, G> extends PersistenceInvariantDescriptor<Interval<T>, G> {
protected boolean useLeftClosedDefault = true;
protected boolean useR... | __label__POS | 0.818622 |
package edu.stanford.math.plex4.homology.barcodes;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair;
import edu.stanford.math.primitivelib.utility.Infinity;
public class BarcodeUtility {
... | __label__POS | 0.998698 |
package edu.stanford.math.plex4.homology.barcodes;
import java.util.List;
public class BarcodeCollection<T extends Comparable<T>> extends AnnotatedBarcodeCollection<T, Object> {
/**
* This function adds the specified finite interval (start, end} at the
* supplied dimension. The curly braces are meant to indicat... | __label__POS | 0.921732 |
#import "AMACore.h"
#import "AMAUserProfileUpdatesProcessor.h"
#import "AMAUserProfileModel.h"
#import "AMAUserProfileUpdate.h"
#import "AMAAttributeUpdateValidating.h"
#import "AMAAttributeUpdate.h"
#import "AMAUserProfileModelSerializer.h"
#import "AMAErrorsFactory.h"
@interface AMAUserProfileUpdatesProcessor ()
@... | __label__POS | 0.881115 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.