Examples of Transform


Examples of com.tankz.components.Transform

    velocityMapper = world.getMapper(Velocity.class);
  }

  @Override
  protected void process(Entity e) {
    Transform t = transformMapper.get(e);
    Velocity velocity = velocityMapper.get(e);

    float r = t.getRotationAsRadians();
    float v = velocity.getVelocity();

    float xn = t.getX() + (TrigLUT.cos(r) * v * world.getDelta());
    float yn = t.getY() + (TrigLUT.sin(r) * v * world.getDelta());

    t.setLocation(xn, yn);
  }
View Full Code Here

Examples of edu.cmu.sphinx.decoder.adaptation.Transform

        }
    }

    public void loadTransform(String path, int numClass) throws Exception {
      clusters = new ClusteredDensityFileData(context.getLoader(), numClass);
      Transform transform = new Transform((Sphinx3Loader)context.getLoader(), numClass);
      transform.load(path);
      context.getLoader().update(transform, clusters);
    }
View Full Code Here

Examples of edu.ucla.sspace.matrix.Transform

    }
   
    protected SemanticSpace getSpace() {
        try {
            int dimensions = argOptions.getIntOption("dimensions", 300);
            Transform transform = new LogEntropyTransform();
            if (argOptions.hasOption("preprocess"))
                transform = ReflectionUtil.getObjectInstance(
                        argOptions.getStringOption("preprocess"));
            String algName = argOptions.getStringOption("svdAlgorithm", "ANY");
            SingularValueDecomposition factorization = SVD.getFactorization(
View Full Code Here

Examples of edu.ucla.sspace.matrix.Transform

    }
   
    protected SemanticSpace getSpace() {
        try {
            int dimensions = argOptions.getIntOption("dimensions", 300);
            Transform transform = new LogEntropyTransform();
            if (argOptions.hasOption("preprocess"))
                transform = ReflectionUtil.getObjectInstance(
                        argOptions.getStringOption("preprocess"));
            String algName = argOptions.getStringOption("svdAlgorithm", "ANY");
            MatrixFactorization factorization =
View Full Code Here

Examples of edu.ucla.sspace.matrix.Transform

                NUM_REFERENCE_DATA_SETS, DEFAULT_NUM_REFERENCE_DATA_SETS));
        int numIterations = maxClusters - startSize;
        String criterion = props.getProperty(METHOD_PROPERTY, DEFAULT_METHOD);

        verbose("Transforming the original data set");
        Transform tfidf = new TfIdfDocStripedTransform();
        Transform rowMag = new RowMagnitudeTransform();
        m = rowMag.transform(tfidf.transform(m));

        verbose("Generating the reference data set");
        // Generate the reference data sets.
        ReferenceDataGenerator generator = new ReferenceDataGenerator(m);
        Matrix[] gapMatrices = new Matrix[numGaps];
        for (int i = 0; i < numGaps; ++i)
            gapMatrices[i] = rowMag.transform(tfidf.transform(
                    generator.generateTestData()));

        double[] gapResults = new double[numIterations];
        double[] gapStds = new double[numIterations];
        Assignments[] gapAssignments = new Assignments[numIterations];
View Full Code Here

Examples of edu.ucla.sspace.matrix.Transform

   
    /**
     * {@inheritDoc}
     */
    public SemanticSpace getSpace() {
        Transform transform = new CorrelationTransform();
        MatrixFactorization reducer = (argOptions.hasOption("reduce"))
            ? SVD.getFastestAvailableFactorization()
            : null;

        return new Coals(transform, reducer,
View Full Code Here

Examples of edu.ucla.sspace.matrix.Transform

     *        LocalityPreservingSemanticAnalysis javadoc} for the full list of
     *        supported properties.
     */
    public void processSpace(Properties properties) {
        try {
            Transform transform = null;
            // If the user specified a transform, then apply it and update the
            // matrix file
            String transformClass =
                properties.getProperty(MATRIX_TRANSFORM_PROPERTY);
            if (transformClass != null)
View Full Code Here

Examples of edu.ucla.sspace.matrix.Transform

     * @param properties {@inheritDoc} See this class's {@link VectorSpaceModel
     *        javadoc} for the full list of supported properties.
     */
    public void processSpace(Properties properties) {
        try {
            Transform transform = null;

            // Load any optionally specifie transform class
            String transformClass =
                properties.getProperty(MATRIX_TRANSFORM_PROPERTY);
            if (transformClass != null)
View Full Code Here

Examples of edu.ucla.sspace.matrix.Transform

     */
    protected SemanticSpace getSpace() {
        setupDependencyExtractor();

        int bound = argOptions.getIntOption('b', 10000);
        Transform transform = argOptions.getObjectOption(
                'T', new NoTransform());
        DependencyPathAcceptor acceptor = argOptions.getObjectOption(
                'a', new UniversalPathAcceptor());
        DependencyPathWeight weighter = argOptions.getObjectOption(
                'w', new FlatPathWeight());
View Full Code Here

Examples of javax.xml.crypto.dsig.Transform

        }

        if (!(o instanceof Transform)) {
            return false;
        }
        Transform otransform = (Transform)o;

        return getAlgorithm().equals(otransform.getAlgorithm()) &&
                DOMUtils.paramsEqual(getParameterSpec(),
                                     otransform.getParameterSpec());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.